home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / textfiles / amigafaq.lha / AmigaFAQ / AmigaFAQ.doc < prev    next >
Encoding:
Text File  |  1994-12-05  |  134.0 KB  |  3,138 lines

  1.   Amiga-FAQ
  2.   *********
  3.   
  4.      This document lists some frequently asked questions and tries to
  5.   give answers.  Its intention is to help new users and to reduce the
  6.   amount of news that most experienced users don't like to read anymore.
  7.   
  8.      Please notice that there are many questions that aren't answered yet,
  9.   even more: Whole sections that remain empty! I feel that I cannot give
  10.   satisfying answers. So it's your turn: Fill the gaps and tell me what i
  11.   should include into this document!
  12.   
  13.  
  14.   Disclaimer
  15.  
  16.   1 CPU, Custom chips, RAM and other stuff
  17.     1 What are the 68EC020 and the 68EC030?
  18.     2 What's an FPU?
  19.     3 Can I use a 3.5" HD in my A1200?
  20.  
  21.   2 The Operating System
  22.     1 Can I use another Kickstart than the builtin?
  23.     2 What is the Amiga equivalent of . (Current directory)?
  24.     3 The PIPE: queue-handler
  25.       1 Using PIPE: in a standard AmigaShell environment
  26.       2 The Pipe command
  27.       3 Pipe command support in AmigaShell
  28.       4 Quick usage guide
  29.       5 Related things
  30.       6 Troubleshooting
  31.  
  32.   3 How about Graphics?
  33.     1 What are chunky and planar displays?
  34.     2 What is doublebuffering?
  35.     3 What monitors will work on my Amiga 1200/4000?
  36.     4 How do I switch between PAL and NTSC?
  37.  
  38.   4 Programming
  39.     1 What documentation do I need as an Amiga programmer?
  40.     2 What is CATS?
  41.     3 Where do I get the Amiga includes?
  42.     4 How do I become a developer?
  43.     5 What compilers (assemblers) are there?
  44.     6 Those never working Esc sequences!
  45.     7 Is it possible to use AmigaBasic on the A1200?
  46.     8 How do I localize my program?
  47.     9 How to obtain a pointer to a console's window
  48.     10 What are pragmas?
  49.     11 My Compiler/Linker is complaining about missing symbol xxx.
  50.     12 Where do I find the function xxx?
  51.     13 The GNU C compiler: general information and installation
  52.       1 Current Version
  53.       2 Requirements
  54.       3 Authors
  55.       4 Sources for Gcc
  56.       5 Inline Headers
  57.       6 Amiga Libraries
  58.       7 Installation
  59.       8 Compiling
  60.       9 How to get help
  61.  
  62.   5 Applications
  63.     1 Text Editors
  64.     2 What word processors are there?
  65.     3 Desktop Publishing
  66.     4 What is TeX and where can I get it?
  67.     5 Are there any Postscript interpreters?
  68.       1 Amiga Font Formats
  69.       2 Frequently Requested Amiga Fonts
  70.       3 Commercial Font Sources
  71.       4 Non-Latin fonts on the Amiga
  72.       5 Amiga Font Installation
  73.       6 Amiga Font Utilities
  74.       7 Making Outline Fonts
  75.       8 Problems and Possible Solutions
  76.     6 How to deal with Non-Latin texts?
  77.       1 Japanese editors and viewers
  78.       2 Chinese text viewers
  79.  
  80.   6 Emulators
  81.     1 Can I run Unix on my Amiga?
  82.     2 Is it possible to use the Amiga as X11 terminal?
  83.     3 Is there a way to start MS-Dos programs?
  84.     4 How to mount MsDos-formatted Syquests on Amiga
  85.  
  86.   7 Miscellaneous
  87.     1 Is there any unix version of LhA?
  88.     2 What are files ending with ...?
  89.     3 Is there a Stacker-like utility to pack my hard drive?
  90.     4 Where do I get Fish disk xxx?
  91.     5 What is MUI and where do I find it?
  92.  
  93.   8 Where and how do I get software and other informations?
  94.     1 Files and databases on freely distributable software
  95.     2 A collection of tests
  96.     3 Getting files from a FTP server
  97.     4 Getting files from a Mail server
  98.     5 Getting files from a mailbox
  99.     6 The Fish PD series
  100.       1 The Amiga Library disks
  101.       2 The Fresh Fish CD-Roms
  102.     7 How do I Read and write MS-Dos disks?
  103.     8 How do I split large files?
  104.     9 Discussing things
  105.     10 Other FAQ's
  106.  
  107.   The Amiga-FAQ archive
  108.  
  109.   Contributions
  110.  
  111.   Credits
  112.  
  113.   Index
  114.  
  115.  
  116.  
  117.   Disclaimer
  118.   **********
  119.   
  120.      This document is
  121.   
  122.        Copyright (C)  Ignaz Kellerer
  123.                        Georg-Habel-Str. 11
  124.                  81241 Munich (Germany)
  125.                        Tel. (+49) 089 / 885147
  126.                        Internet: kellerer@informatik.tu-muenchen.de
  127.   
  128.      Permission is granted to make and distribute verbatim and modified
  129.   copies of this document following the terms of the "GNU General Public
  130.   License" provided the copyright notice and this permission notice are
  131.   preserved on all copies.
  132.   
  133.      The author gives *absolutely no* warranty that the answers given
  134.   here are correct or usable. Many of them were contributed by other users
  135.   and I cannot even make marginal checks. If you think that something
  136.   should be changed, please tell me. Suggestions, contributions, new
  137.   answers, critics, flames (oh, how I like this `nil:' :-) are rather
  138.   welcome.  See Contributions.
  139.   
  140.   1 CPU, Custom chips, RAM and other stuff
  141.   ****************************************
  142.   
  143.      This chapter contains questions concerning the Amiga-Hardware.
  144.   
  145.   1.1 What are the 68EC020 and the 68EC030?
  146.   =========================================
  147.   
  148.      Motorola, the company producing the 680x0 family offers crippled
  149.   versions of their processors. They are a little bit cheaper than the
  150.   originals, that's why Commodore decided to build the 68EC020 into the
  151.   A1200 and the 68EC030 into the A4000/030.
  152.   
  153.      The difference between the 68020 and the 68EC020 is that the latter
  154.   can address just 16Mb of memory. That's why the A1200 cannot have more
  155.   that 10 Mb RAM. In most cases you will not notice the difference.
  156.   
  157.      This is not the case for the 68EC030: Many owners will notice that
  158.   the 68030 has an MMU and the 68EC030 doesn't have. There are some
  159.   important programs depending on an MMU, for example Enforcer (a
  160.   debugging utility), GigaMem (a program to emulate virtual memory) or
  161.   all current Unix versions (see Unix). Other Amigas than the A4000 and
  162.   the A3000 need an additional processor card to run these.
  163.   
  164.      Finally the 68LC040 is a 68040 without FPU. See FPU.
  165.   
  166.   1.2 What's an FPU?
  167.   ==================
  168.   
  169.      The first 680x0 processors (upto 68030) could process integers only.
  170.   Floating point operations had to be emulated by the software. An FPU is
  171.   a chip (or part of a chip) that can process floating point operations, a
  172.   mathematical coprocessor.
  173.   
  174.      One separates three FPU types on the Amiga: The 68881, 68882 and the
  175.   68040's internal FPU. The 68882 is up to 1.5 times faster than the
  176.   68881, because it is splitted in two parts: A conversion unit (the
  177.   FPU's are using an 80 bit format internally) and the arithmetic unit.
  178.   The 68040's internal FPU adds a pipeline, but misses the trigonometric
  179.   instructions of the others. These are still emulated by the software,
  180.   68040.library for example.
  181.   
  182.      Special programs (Raytracing, DTP, Mathematics, TeX) are offered in a
  183.   special coprocessor version which are up to 50 times faster than the
  184.   original versions.
  185.   
  186.      Michael Kaiser (kaiser@ira.uka.de)
  187.   
  188.   1.3 Can I use a 3.5" HD in my A1200?
  189.   ====================================
  190.   
  191.      Many people would prefer to use a 3.5" instead of the smaller 2.5"
  192.   drives as the former are much cheaper. This is possible, but you need a
  193.   special cable to connect the drive to your IDE controller. Additionally
  194.   you should put some isolating material between the drive and the main
  195.   board. Some people report termic problems but I did not notice anything.
  196.   
  197.      Some dealers offer a set which contains the cable, isolating material
  198.   and for about 20$. See the magazines for more information.
  199.   
  200.      Thomas Schuh (thomas@stepout.tynet.sub.org)
  201.   
  202.      If you are going to install an IDE-harddisk, regardless if 2.5" or
  203.   3.5", you should always consider that the it may not work flawlessly,
  204.   if the drive and ROM-version have not been tested and approved by
  205.   Commodore. Regarding the A1200, one should also remember that this
  206.   Amiga has not been designed to hold 3.5" harddisk drives. The 2.5"
  207.   drives, which are mainly thought for portable computers, may have some
  208.   advantages (for example in power consumption, heat emission or shock
  209.   resistance) that could pay off because of the small keyboard case of
  210.   the A1200 and the limited power supply. With the larger 3.5" drives,
  211.   ventilation inside the computer might also be disturbed. If it is
  212.   necessary to remove some shielding inside the A1200 to make the drive
  213.   fit inside, even radio interference may occur.
  214.   
  215.      To sum it up: if 3.5" harddisk drives could really be used in the
  216.   A1200 without any problems, you could be sure Commodore themselves
  217.   wouldn't have used the slightly more expensive 2.5" drives in the
  218.   A1200-HD.
  219.   
  220.   2 The Operating System
  221.   **********************
  222.   
  223.      This chapter handles questions concerning the operating system,
  224.   Kickstart as well as the Workbench.
  225.   
  226.   2.1 Can I use another Kickstart than the builtin?
  227.   =================================================
  228.   
  229.      First let's drop some words on the Kickstart's Copyright: This
  230.   belongs to Commodore, you *must not* use Kickstarts, without the right
  231.   to do it!  Especially it isn't allowed to make an image of anyone
  232.   else's Kickstart and run this on your own Amiga. (I even doubt that it
  233.   is allowed to do this on your own Amigas, if you have more than one.)
  234.   
  235.      But of course it is possible and allowed for some people, developers
  236.   for example.  There are two different ways, a hardware solution and a
  237.   software solution.  The former is to buy a card which can hold two or
  238.   more Kickstart ROMS and allows to select between when the System is
  239.   booting.
  240.   
  241.      The software solution needs a program (softkicker) and an image of
  242.   the ROM. The softkicker allocates RAM, loads the ROM image into the
  243.   allocated memory and reboots. Of course you have less RAM after the
  244.   Reboot: 256Kb when running Kickstart 1.2 or 1.3 and 512Kb for Kickstart
  245.   2.0 or higher.
  246.   
  247.      There are different Softkickers, some of them needing a MMU (see
  248.   68EC0xx). I recommend SKick 3.43 (Aminet, directory `util/boot')
  249.   because it doesn't need a MMU and supports many different Kickstarts.
  250.   It is rather easy to create the ROM image using the following program:
  251.   
  252.            #include <stdio.h>
  253.        
  254.            #define kickorig 0xf80000   /*  0xfc0000 for Kick 1.2 und 1.3   */
  255.            #define kicklen  0x080000   /*  0x040000 for Kick 1.2 und 1.3   */
  256.        
  257.            void main(int argc, char*argv[])
  258.            {
  259.                FILE *fh;
  260.        
  261.                if ((fh = fopen("kickstart.file", "w"))  !=  NULL) {
  262.                    result = fwrite(kickorig, kicklen, 1, fh);
  263.                }
  264.                fclose(fh);
  265.            }
  266.   
  267.   2.2 What is the Amiga equivalent of . (Current directory)?
  268.   ==========================================================
  269.   
  270.      The AmigaDOS equivalent for the . representing the current directory
  271.   on Unix and certain non-reentrant interrupt handlers is the empty
  272.   string, which is written as "".
  273.   
  274.      Example:
  275.            COPY S:Startup-Sequence ""
  276.   
  277.   copies your Startup-Sequence to the current directory.
  278.   
  279.      There is some FD software available to patch a Unix-like
  280.   interpretation of . and .. into the AmigaDOS, including, but not
  281.   limited to, Martin Scott's UnixDirs. (Aminet,
  282.   `os20/util/UnixDirsII.lha' or Fish-disk 837)
  283.   
  284.      Arno Eigenwillig (arno@yaps.dinoco.de)
  285.   
  286.   2.3 The PIPE: queue-handler
  287.   ===========================
  288.   
  289.      In the AmigaOS release 2.04, a new handler for passing data between
  290.   programs was introduced. This handler is called `L:Queue-Handler',
  291.   better known as the `PIPE:' device.
  292.   
  293.      `PIPE:' implements a true `pipe' familiar from UNIX systems.  Its
  294.   function is to pass the output of one program to another program as
  295.   input. You can chain several programs together using multiple pipes.
  296.   
  297.      The advantages of using pipes are:
  298.     1. No need for a lot of RAM to keep the temporary files, or, no need
  299.        to slow things down by storing temporary files on the HD.
  300.   
  301.     2. Faster operation since the intermediate data doesn't need to be
  302.        stored anywhere between programs.
  303.   
  304.      The `PIPE:' device differs from the UNIX pipes in two important
  305.   respects:
  306.     1. It is a device, so the input and output of the programs doesn't
  307.        need to be a redirected standard output, although that is the
  308.        general case. You can also use `PIPE:' instead of files, with two
  309.        restrictions; you can not read a directory from `PIPE:', and the
  310.        `PIPE:' `file' can not be `seeked' in.
  311.   
  312.     2. It does not support a flush operation. If all of the data written
  313.        in a `PIPE:' device is not read out, it will stay there, buffered.
  314.        Thus you must always `empty' a pipe before closing it.
  315.   
  316.     3. Because of the above, if unread data exceeds the size of the
  317.        `PIPE:' internal buffer, the program writing to the pipe will
  318.        `block' (that is, suspend operation) until the data is read. See
  319.        below on how to manually flush a pipe.
  320.   
  321.      The PIPE: handler name syntax is `PIPE:name/bufsize/bufnum', where
  322.   `name' is the name for the pipe channel. Using names you can have
  323.   several simultaneous pipe operations. The optional arguments
  324.   `bufsize'and `bufnum' specify the size and number of the buffers used
  325.   by `PIPE:'. Normally, you would just use `PIPE:name'.
  326.   
  327.      The default buffer size of `PIPE:' is 4096 bytes, and the number of
  328.   buffers (ie. channels) is unlimited.
  329.   
  330.      Osma Ahvenlampi (Osma.Ahvenlampi@hut.fi)
  331.   
  332.   2.3.1 Using PIPE: in a standard AmigaShell environment
  333.   ------------------------------------------------------
  334.   
  335.      First, make sure `PIPE:' is mounted. You can do this by giving the
  336.   command
  337.            1> Mount PIPE:
  338.   
  339.   in a Shell window. On an AmigaOS 2.1+ system, `PIPE:' is normally
  340.   mounted on startup by placing the mount entry file `PIPE' in the drawer
  341.   `DEVS:DosDrivers'.
  342.   
  343.      In an AmigaShell window, give the commands:
  344.            1> Run List SYS: >PIPE:Listoutput
  345.            1> More <PIPE:Listoutput
  346.   
  347.   (1)
  348.   
  349.      These two commands list the contents of the `SYS:' volume to a pipe
  350.   and then type it in the Shell window. You could also use:
  351.            1> Run List SYS: NOHEAD >PIPE:Listoutput
  352.            1> Run Sort PIPE:Listoutput PIPE:Sortedoutput
  353.            1> More <PIPE:Sortedoutput
  354.   
  355.   Notice that you need to `Run' all the programs except for the last one.
  356.   This is so that you can get them all running simultaneously. You could
  357.   also use several Shell windows, or any other way of running all the
  358.   programs at the same time. Also this might not work if `More' isn't the
  359.   standard Commodore AmigaOS 2.04+ More found in `SYS:Utilities'.
  360.   
  361.      In case you need to manually flush a pipe, for example because the
  362.   program that was reading from it aborts prematurely, it can be done
  363.   with the command:
  364.            1> Type PIPE:name TO NIL:
  365.   
  366.      ---------- Footnotes ----------
  367.   
  368.      (1)  Note that `1>' is the prompt AmigaShell gives when it is
  369.   waiting for a command. The number varies, and the prompt can be
  370.   customised to look completely different. It is not a part of the
  371.   command.
  372.   
  373.   2.3.2 The Pipe command
  374.   ----------------------
  375.   
  376.      As you can see, this is a somewhat difficult way of using pipes,
  377.   needing a lot of typing especially compared to the UNIX pipes. There is
  378.   a solution for that.
  379.   
  380.      Andy Finkel, a former Commodore software engineer wrote a command
  381.   called `Pipe' (not to be confused with `PIPE:') that simplifies the use
  382.   of the `PIPE:' device. Unfortunately, this command did not make it into
  383.   the 2.04 release. However, Commodore has given the permission to
  384.   distribute this, and a few other commands, freely. (Sources: Fish disk
  385.   637, Aminet, `util/cli/finkelshelltools.lha')
  386.   
  387.      For some reason Commodore did not include these commands in the later
  388.   OS releases, although they work fine even with OS 3.1 (V40). Thus all
  389.   users are required to get them from the above sources if they wish to
  390.   use them.
  391.   
  392.      The Pipe command usage is simple. The commands to be run with their
  393.   inputs and outputs piped together are given as arguments to the
  394.   command, separated by the | (vertical bar) character:
  395.   
  396.            1> Pipe List SYS: | More
  397.                or
  398.            1> Pipe List: SYS: NOHEAD | Sort IN: OUT: | More
  399.   
  400.   Notice how Sort needs `IN:' and `OUT:'. These devices don't actually
  401.   exist, but the Pipe command simulates them with the PIPE:. This is
  402.   necessary because C:Sort can not use the `standard IO', but insists on
  403.   files.
  404.   
  405.      The separator character | can be configured to be something else
  406.   with the local variable __PCHAR.
  407.   
  408.   2.3.3 Pipe command support in AmigaShell
  409.   ----------------------------------------
  410.   
  411.      There is a little known and quite useful undocumented feature built
  412.   in the 2.04+ AmigaShell, that is, AmigaShell knows about the `Pipe'
  413.   command. By setting the local variable _PCHAR, you can use pipes
  414.   without even entering the Pipe command. AmigaShell will prepend it on
  415.   the command line automatically if it sees the pipe separator command
  416.   specified by _pchar on the command line.
  417.   
  418.      Thus, after the command:
  419.            1> Set _pchar "|"
  420.   
  421.   (1)
  422.   
  423.      the above examples can be used like this:
  424.            1> List SYS: | More
  425.                or
  426.            1> List SYS: NOHEAD | Sort IN: OUT: | More
  427.   
  428.      Those familiar with the UNIX pipes will notice how the usage is very
  429.   similar to the UNIX pipe usage.
  430.   
  431.      ---------- Footnotes ----------
  432.   
  433.      (1)  The quotes around the vertical bar are important, to avoid
  434.   AmigaShell interpreting the command as an attempt to use PIPE:, if
  435.   _PCHAR is already set (for example if the Shell is started from within
  436.   another one).
  437.   
  438.   2.3.4 Quick usage guide
  439.   -----------------------
  440.   
  441.     1. Get the ShellTools archive from the Fish disk 673, or from Aminet,
  442.        `util/cli/hacks204.lha'.
  443.   
  444.     2. Install the commands in this archive in your Shell search path,
  445.        preferably C:.
  446.   
  447.     3. Put the command `Set _pchar |' in your `S:Shell-Startup' file.
  448.   
  449.     4. Restart your AmigaShell so that it reads the `S:Shell-Startup'.
  450.   
  451.     5. Try `List SYS: | More'
  452.   
  453.     6. Read the ShellTools documentation and experiment.
  454.   
  455.   2.3.5 Related things
  456.   --------------------
  457.   
  458.      The variable _mchar is used to separate one command from another in
  459.   a shell line.  So, after the command:
  460.            1> Set _mchar ";"
  461.      you can put more shell commands into the same line, separated from
  462.   each other by `;'.
  463.   
  464.   2.3.6 Troubleshooting
  465.   ---------------------
  466.   
  467.   *Q:*
  468.        When I try the command `List SYS: | More' I get an error
  469.                 PIPE: Unknown command
  470.   
  471.        I have `PIPE:' mounted, what's wrong?
  472.   
  473.   *A:*
  474.        AmigaShell is referring to the command `Pipe' in the error, not the
  475.        `PIPE:' device. You haven't installed the commands in the
  476.        ShellTools archive.
  477.   
  478.   *Q:*
  479.        I get a requester that says
  480.                 Please insert volume PIPE: in any drive
  481.   
  482.        when I try any of the command examples.
  483.   
  484.   *A:*
  485.        `PIPE:' is not mounted. Try `Mount PIPE:'. If that doesn't work,
  486.        refer to your AmigaDOS manual or a friend that knows how to mount
  487.        devices.
  488.   
  489.   *Q:*
  490.        When I try any of the examples the More window pops up but nothing
  491.        is shown/I get an error afterwards/More pops up a file requester.
  492.   
  493.   *A:*
  494.        You are not using the standard AmigaOS `More' command. Either use
  495.        another name or install a command that supports pipes.
  496.        Possibilities are the C= More, Less, or Most for example.
  497.   
  498.   *Q:*
  499.        None of these happen but it still doesn't work as you described.
  500.   
  501.   *A:*
  502.        Are you using OS 2.04 later? Are you using the standard AmigaShell?
  503.        Try with all extras disabled.
  504.   
  505.   3 How about Graphics?
  506.   *********************
  507.   
  508.      Graphics is one of the major strengths of the Amiga. Why don't we
  509.   have more answers here? :-(
  510.   
  511.   3.1 What are chunky and planar displays?
  512.   ========================================
  513.   
  514.      Simply put, the terms `chunky' and `planar' (short for `bitplanar')
  515.   refer to different ways of storing graphics information in a computer's
  516.   memory. They are rather easy to understand, as far as things go, but
  517.   incredibly difficult to explain:
  518.   
  519.      Computer images are arranged as a grid of pixels, each of which can
  520.   be thought of as a number representing the color number of the pixel,
  521.   sort of like a paint-by-numbers scheme.  For example, here's a
  522.   simplified example image, in four colors:
  523.   
  524.           00302132
  525.   
  526.      The Amiga stores this image in a `bitplane' mode. That is, it is
  527.   represented by several planes of bits (binary digits, 1s or 0s). This
  528.   is a four-color image, so each color number could be represented by two
  529.   bits.  Therefore there are two bitplanes:
  530.   
  531.           00100110    Here's bitplane 0
  532.           00101011    And here's bitplane 1
  533.           --------    Now, let's add them up, binary style:
  534.           00302132
  535.   
  536.      Which is the final image. If the image was in two dimensions, it
  537.   would truly be composed of bit planes. However, I'd need three
  538.   dimensions to show multiple bitplanes overlayed, and therefore for
  539.   simplicity we're working in one dimension (which is all we need).
  540.   
  541.      Now, there's another way of storing this image.  How about if we
  542.   localize the bit data in little chunks?
  543.   
  544.           00 00 11 00 01 10 11 01 = 00302132
  545.   
  546.      This is the principle of the `chunky' pixel mode.
  547.   
  548.      Both methods of image storage are perfectly logical, and no one can
  549.   say that one is better than the other. However, there are certain
  550.   technical aspects which cause certain advantages and disadvantages.
  551.   
  552.      First, if you've seen colored text scroll on your Amiga, you know
  553.   there is a bit of "flicker" that arises. Specifically, what happens is
  554.   that while the text is scrolling, its color temporarily changes to
  555.   something completely different. What's happening is that the computer's
  556.   moving several bitplanes of data while the raster (monitor electron
  557.   gun) is sweeping across the screen. What that means is that, if the
  558.   raster catches the data while it's being moved, you can end up with some
  559.   bitplanes being moved and some not. What if we filled bitplane 1 in the
  560.   example above with 0s? Instantly all the 3s become 1s, and the 2s
  561.   become 0s! This is what causes "flicker" when certain colors are
  562.   scrolled. By contrast, if a chunky pixel display is caught while
  563.   scrolling, all we see is a partially-scrolled image; the colors are
  564.   preserved (since their units are the small ones).
  565.   
  566.      That's a disadvantage to planar pixels, but what about chunky pixels?
  567.   Well, recall that a computer organizes information in terms of 8 bit
  568.   bytes. These groups are static; you cannot decide to all of a sudden
  569.   organize data in terms of three bytes or something! Therefore, when
  570.   using chunky pixels, things get complicated if we decide to use a
  571.   nonconvenient number of bits per pixel. In practice, the 8-bit
  572.   (256-color) mode, and 24-bit (16 million color) modes are the most
  573.   common candidates for chunky pixel displays.
  574.   
  575.      Finally, certain effects can be accomplished with the different
  576.   systems.  Bitplanar mode is particularly useful for things like shadows
  577.   (where an extra bitplane is set with 1s instead of 0s), and chunky mode
  578.   is great for perspective and "mapping" (since the data for each pixel is
  579.   localized in a single "chunk"). The latter advantage makes chunky pixel
  580.   mode really great for games, and is what made Wolfenstein 3-D possible.
  581.   
  582.      We all know that Amigas use the bitplane system for storing images.
  583.   However, the Macintosh and PC(VGA) both use chunky pixel modes. While
  584.   we can optimize our RAM usage with "bizarre" modes like 8- and
  585.   128-color, they gain the advantages of non-flicker scrolling, and the
  586.   programming simplicity of just writing a byte where you want the pixel
  587.   to go.
  588.   
  589.      The difference between the two modes becomes problematic in things
  590.   like emulation. EMPLANT has a "chunky to planar" routine which it uses
  591.   to convert a Macintosh display into an Amiga one. "Chunky to planar"
  592.   routines are also useful for getting chunky-inclined things to run on
  593.   Amigas (see TMAPDemo, rotdemo). On a side note, there was some
  594.   confusion as to what EMPLANT used the MMU for with regard to chunky to
  595.   planar. The MMU itself is incapable of performing the algorithm for the
  596.   conversion; rather, it is used to detect what portions of the display
  597.   memory are updated from the Mac side, and therefore the processor is
  598.   saved from having to perform the chunky to planar conversion for the
  599.   entire display.
  600.   
  601.      I sincerely hope that helped clear up most of the mystery concerning
  602.   the terms "Chunky" and "Planar"!
  603.   
  604.      (Joseph Luk, jluc@eis.calstate.edu)
  605.   
  606.   3.2 What is doublebuffering?
  607.   ============================
  608.   
  609.      Don't be ashamed if you haven't a clue as to what this is. It's
  610.   rather simple, really. Imagine you wanted to animate something by
  611.   drawing out each frame. Now imagine you had only one piece of paper.
  612.   Even if you drew pretty fast, it would be difficult to see what the
  613.   animation looks like because you'd have to erase the frame you just
  614.   drew, in order to draw the next one!
  615.   
  616.      What if you had two pieces of paper? Why, then, you could see the
  617.   difference between two adjacent frames. First you'd draw your first
  618.   frame on the first piece of paper, then you'd draw the second frame on
  619.   the other piece.  Then you'd erase the picture on the first piece of
  620.   paper, and draw in the third frame. Then you'd erase the picture on the
  621.   second piece of paper, and draw in the fourth frame, and so forth.
  622.   
  623.      This is the principle of doublebuffering. The computer shows you the
  624.   picture it just drew, then turns around and draws the next one. It then
  625.   swaps the picture in front of you with the one it just drew, and
  626.   repeats the process. The result is a smooth animation, because you
  627.   never need to see the computer draw; all you see is each finished
  628.   product.
  629.   
  630.      (Joseph Luk, jluc@eis.calstate.edu)
  631.   
  632.   3.3 What monitors will work on my Amiga 1200/4000?
  633.   ==================================================
  634.   
  635.      Monitors can be classified after the horizontal scan frequency they
  636.   require.  TVs, as well as C='s 1084 monitor, need frequencies around 15
  637.   kHz. VGA/SVGA need approx. 30 kHz. Multisync monitors can take many
  638.   frequencies.
  639.   
  640.      In short: You can use any monitor you want with an A1200. BUT:
  641.   
  642.      - If you use a regular VGA/SVGA monitor, you can only use a few
  643.        display modes (like DblPAL, DblNTSC and/or Productivity). I.e.
  644.        (320|640) x (256|512|1024) for DblPAL. This is great for Workbench
  645.        and all "serious" utilities (DTP etc), but don't expect any games
  646.        to work... they don't use your preferences, just take over the
  647.        machine and assume a 15 kHz monitor. Also, you cannot utilize the
  648.        "Early Startup Control" screen (you know, disable cache, and that
  649.        stuff), which also requires a 15 kHz monitor. Furthermore, VGA
  650.        monitors don't have speakers. And the VGA-type modes don't support
  651.        Genlocks. But for a lot of "serious" work, a VGA monitor is quite
  652.        adequate.
  653.   
  654.      - You already know what happens with a 15 kHz monitor; the
  655.        flickering in Interlace mode. A small tip: Try to use NTSC instead
  656.        of PAL. This increases the refresh rate from 25 Hz to 30 Hz, at
  657.        the expense of lower vertical resolution (482 lines maximum). The
  658.        NTSC and PAL modes aren't as bad as many people think. If your
  659.        monitor has a lot of phosphorous (long afterglow), PAL Laced can
  660.        be quite OK, and it gives you a resolution of 1448x566 in
  661.        SuperHiRes. That's the highest resolution currently supported on
  662.        AGA Amigas, in _any_ display mode.
  663.   
  664.      - A Multisync gives you the best of both worlds. The 1940 and 1942
  665.        monitors from C= are quite OK, although rather cumbersome to
  666.        use... The h/v size and offset must be set manually each time you
  667.        switch display mode.  (1) The 1960 monitor doesn't have this
  668.        problem, but it's a bit more expensive.
  669.   
  670.      For a VGA/SVGA or Multisync monitor, you'd need a little shiny box
  671.   which gives you the standard 15-pin "D" connector. It costs around $15.
  672.   
  673.      There are other alternatives... like the "AmiVGA" box ($50 or so),
  674.   which I think is a cheapo version of the Flicker Fixer. (But it's
  675.   really a shame to use this on an AGA Amiga.)
  676.   
  677.      Also, you can get a VGA monitor, and hook up your TV to the
  678.   composite or RF port on the Amiga - one monitor for games, one for
  679.   serious stuff.
  680.   
  681.      (Per Espen Hagen, per.e.hagen@ffi.no)
  682.   
  683.      ---------- Footnotes ----------
  684.   
  685.      (1)  A patch is available on Aminet for Kickstart 3.0 to do this
  686.   without manual actions in the file `os30/util/Monitor30Patch.lha'.
  687.   
  688.   3.4 How do I switch between PAL and NTSC?
  689.   =========================================
  690.   
  691.      PAL and NTSC are two different video standards, the former being
  692.   European, and the latter being American. PAL has a slightly taller
  693.   screen (256 lines non-interlaced, non-overscanned) as opposed to NTSC
  694.   (200 lines), so if you see the bottom portion of a program's screen
  695.   getting cut off on your American machine, chances are the program was
  696.   written for PAL, and is running on your shorter NTSC screen. PAL and
  697.   NTSC differences are somewhat less important to European users; since
  698.   their machines default to PAL, running an NTSC program is no more than
  699.   a minor annoyance having the screen only appear in the top portion of
  700.   the display.
  701.   
  702.      Therefore, for us NTSC folks, switching into PAL mode becomes
  703.   important to avoid loss of some picture on Euro Demos, etc.
  704.   
  705.      First, the most common misconception about switching between PAL and
  706.   NTSC is that you need a Multiscan or special monitor for such a purpose.
  707.   Not so! Just about any monitor can handle the minor signal difference
  708.   between PAL and NTSC (50Hz vertical refresh versus 60Hz). The 108x,
  709.   19xx, and 20xx series, and even most TVs, can display both PAL and NTSC.
  710.   Sometimes it is necessary to perform minor tweaking of vertical hold
  711.   and/or v. size on your monitor to achieve full display, though this is
  712.   trivial.
  713.   
  714.      What IS needed to switch between PAL and NTSC in software, is a
  715.   "Fatter" (1MB) Agnus or better. If your system has more than 512K of
  716.   CHIP RAM (use the avail command to find out) you have this chip. If you
  717.   do not, ou can still construct a hardware switch (see below).
  718.   
  719.      The following directions assume you're an NTSC user who wants to
  720.   switch into PAL mode, but the procedure for going from PAL to NTSC is
  721.   much the same.
  722.   
  723.      The most common use of switching into PAL is for self-booting games,
  724.   demos, etc.  The best way to accomplish this on pre-3.0 systems is to
  725.   use Chris Hames' Degrader program (most recent version: 1.30). Once you
  726.   have procured this program, the switch is as simple as selecting
  727.   "50Hz", and "50Hz System", then installing the program's ROMTag (little
  728.   program that runs at boot-time) by pressing the "Survive Reset(s)"
  729.   button.
  730.   
  731.      AmigaDOS 3.0 added a PAL/NTSC switch feature to its Boot Menu, and
  732.   all you need to do in order to access this is hold down both mouse
  733.   buttons as the computer boots. Select Display Options, Display
  734.   Mode/PAL, and then Boot. If the program still fails to go into PAL mode
  735.   (Zool is one I've found), you may wish to get Degrader anyway and try
  736.   that.
  737.   
  738.      Software PAL/NTSC switching is easy and painless. Some people have
  739.   gone even further by installing hardware PAL/NTSC switches. This
  740.   results in a system which even the most nasty hardware-banging programs
  741.   can't bring to its original configuration (if it has been switched).
  742.   The procedure is simple - most Amigas have jumpers already - but beyond
  743.   the scope of this document.
  744.   
  745.      Therefore, if your screen is too short or cut off, seek the different
  746.   screen mode. You'll "see new horizons", literally!
  747.   
  748.      (Joseph Luk, jluc@eis.calstate.edu)
  749.   
  750.      (1)
  751.   
  752.      ---------- Footnotes ----------
  753.   
  754.      (1)  PAL/NTSC switching with a MultiSync monitor is possible on 2.0+
  755.   and easily accomplished by moving the PAL monitor type to (or NTSC, as
  756.   applicable, I have them both in) the Devs/Monitors drawer (from the
  757.   Storage/Monitors drawer), reboot, then go into the Prefs drawer and
  758.   select the ScreenMode program. You will see at least two PAL modes
  759.   available (PAL and PAL Interlaced). Simply select one of the (usually
  760.   non-interlaced for demos) and select "Use". All windows on the Workbench
  761.   will close, the video mode will change, and then the windows will
  762.   reopen - that simple!
  763.   
  764.      Allen J. Newton, anewton@alturia.abq.nm.us
  765.   
  766.   4 Programming
  767.   *************
  768.   
  769.      This chapter handles problems arising for programmers and
  770.   compiler-users only.
  771.   
  772.   4.1 What documentation do I need as an Amiga programmer?
  773.   ========================================================
  774.   
  775.      The best information available are the RKMs (ROM Kernel Manuals), 3rd
  776.   edition, by Commodore, published by Addison-Wesley:
  777.        The Amiga ROM Kernel Manual:  Libraries, ISBN 0-201-56774-1
  778.        The Amiga ROM Kernel Manual:  Devices, ISBN 0-201-56775-X
  779.        The Amiga ROM Kernel Manual:  Includes and Autodocs, ISBN
  780.                                                             0-201-56773-3
  781.        The Amiga Hardware Manual, ISBN 0-201-56776-8
  782.        The Amiga User Interface Style Guide, ISBN 0-201-57757-7
  783.   
  784.   Especially the RKM: Libraries is a must. The RKM: Includes and Autodocs
  785.   isn't that much worth: Better get the same stuff on disk instead to
  786.   have it online.  See Includes.
  787.   
  788.      AmigaDOS isn't included in these books. The Autodocs give much
  789.   information, but to go deeper you probably need
  790.        The AmigaDOS Manual, 3rd Edition, ISBN 0-553-35403-5
  791.      published by Bantam Books.
  792.   
  793.      A better choice for developers is
  794.        The Amiga Guru Book
  795.   
  796.   by Ralph Babel. The book starts with a survey on different aspects of
  797.   programming the Amiga. (About 250 pages) Useful for beginners are the
  798.   sections on the Amiga's data types (not to be confused with the 3.x
  799.   DataTypes used by MultiView, for example), the Includes and the
  800.   amiga.lib. But even experienced programmers will find useful things
  801.   here that are missing in the RKMs.  But the largest part are about 500
  802.   pages on AmigaDOS and, as I think, the most important, because AmigaDOS
  803.   is the worst officially documented part of the OS. The book is rather
  804.   concise and hence not as easy to read as the RKMs, but I recommend it
  805.   as an addition and instead of the AmigaDOS manual.  (Not, however, a
  806.   replacement for the Libraries and Devices, which aren't covered here.)
  807.   Unfortunately the book has no ISBN and is available in special stores
  808.   only. But there are some mail order companies which offer it for about
  809.   50$ and which accept credit cards:
  810.   
  811.                                    Almathera Systems Limited
  812.                                    Southerton House
  813.        NBG USA, Inc.               Boundary Business Court
  814.        482 Holly Avenue            92-94 Church Road
  815.        St. Paul, MN 55102          Mitcham, Surrey CR4 3TD
  816.        USA                         England
  817.        Voice: +1 (612) 290 9447    Voice: +44 181 687 0040
  818.        Fax:   +1 (612) 290 9449    Fax:   +44 181 687 0490
  819.                                    E-Mail: <almathera@cix.compulink.co.uk>
  820.        
  821.                                    Stefan Ossowskis Schatztruhe
  822.        Hirsch & Wolf OHG           Gesellschaft für Software mbH
  823.        Mittelstraße 33             Veronikastraße 33
  824.        D-56564 Neuwied             D-45131 Essen
  825.        Germany                     Germany
  826.        Voice: +49 (2631) 8399-0    Voice: +49 (201) 788778
  827.        Fax:   +49 (2631) 8399-31   Fax:   +49 (201) 798447
  828.                                    E-Mail: <stefano@tchest.e.eunet.de>
  829.        
  830.        Someware
  831.        27 rue Gabriel Péri
  832.        59186 Anor
  833.        France
  834.        Voice: +33 27596000
  835.        Fax:   +33 27595206
  836.        E-Mail: <didierj@swad.someware.com>
  837.      See FAQs.
  838.   
  839.   4.2 What is CATS?
  840.   =================
  841.   
  842.      This is a department at Commodore West Chester which was formerly
  843.   named `Commodore Amiga Technical Support' and was later renamed
  844.   `Commodore Application and Technical Support'. These are people that
  845.   work independently of Engineering, but close together with them, and try
  846.   to help developers outside of Commodore to create nice Amiga
  847.   applications, software or hardware. To achieve this, CATS has gathered
  848.   a lot of informations and tools, on floppy, CD, or paper. Much of this
  849.   material is also available to the general public. (1) But don't mix
  850.   this up with some sort of Hotline for everyone!
  851.   
  852.      For Americans the address to get this material is
  853.            CATS
  854.            Commodore Electronics Limited
  855.            950 Rittenhouse Road
  856.            Norristown, PA 19403
  857.   
  858.   for all Europeans it's a company in Germany:
  859.            Fa. Hirsch & Wolf
  860.            Mittelstr. 33
  861.            56564 Neuwied
  862.            Tel. 02631/83990
  863.   
  864.      Dr. Peter Kittel, peterk@cbmger.de.so.commodore.com
  865.   
  866.      ---------- Footnotes ----------
  867.   
  868.      (1)  Which means: For Non-Developers.
  869.   
  870.   4.3 Where do I get the Amiga includes?
  871.   ======================================
  872.   
  873.      The only legal way to get the includes and autodocs (and you *should*
  874.   get them, they are *very* useful!) is to become a developer (see
  875.   Developer) or to buy the `NDU' (Native developers update kit, also
  876.   known as `NDUK' or `NDK'), which is offered by CATS. They cost about
  877.   30$ plus shipping and this seems to me to be a fair price. See CATS.
  878.   The current version is 3.1.
  879.   
  880.      If you need only the includes, you could get them as well with a
  881.   compiler (commercial compilers only) or by getting the Fresh Fish CD.
  882.   See Fish CD.
  883.   
  884.   4.4 How do I become a developer?
  885.   ================================
  886.   
  887.      You need the `ADSP' (Amiga Developer Support Program) documents. To
  888.   get this write a letter to your local Commodore branch asking for these
  889.   documents.  Everything else should be explained there. The german
  890.   address (for the US address see CATS) is
  891.            Commodore
  892.            Lyoner Strasse 38
  893.            60528 Frankfurt
  894.      There are three different developer versions:
  895.   *Registered*
  896.        developers get access to the CBMNET (kind of a Commodore-internal
  897.        Usenet), which makes it possible to discuss problems with other
  898.        developers, Commodore engineers included. Registered developers
  899.        pay about US$80 per year, plus initial US$30 initially.
  900.   
  901.   *Certified*
  902.        developers seem to me the most interesting claass: They have the
  903.        possibility copy the most beta versions of the system software
  904.        (Kickstart and Workbench) and the respective Includes and
  905.        AutoDocs. (Not all beta versions and especially no beta hardware.)
  906.        You pay about US$250 per year plus US$50 initially for this.
  907.   
  908.   *Commercial*
  909.        developers finally have in most details the same as certified
  910.        developers, but may expect to get more beta versions and sooner,
  911.        included beta hardware (This has *not* always been so in the
  912.        past.), hencethey pay about US$400 plus US$50 initially.
  913.   
  914.   The above describes the prices and the situation in Germany and might be
  915.   different elsewhere. Especially not all Commodore branches offer the
  916.   registered status. A hint is to build a group of users and become a
  917.   developer group, so the costs are reduced.
  918.   
  919.      All developers have to sign non-disclosure agreements (`NDA') which
  920.   specify that we may not discuss information outside of authorized areas
  921.   even to other developers until given explicit permission by Commodore.
  922.   
  923.   4.5 What compilers (assemblers) are there?
  924.   ==========================================
  925.   
  926.      There is a lot of programming languages on the Amiga, commercial as
  927.   well as freely distributable. I will enumerate only those that I know
  928.   or which seem it worth to me otherwise.
  929.   
  930.   *Assembler*
  931.        All C-compilers have an Assembler included. Freely distributable
  932.        are A68K and PhxAss (directory `dev/asm' on Aminet or Fish disks
  933.        521 and 906)
  934.   
  935.   *C*
  936.   *C++*
  937.        Freely distributable C-compilers are `gcc' (which has its own
  938.        directory `dev/gcc' on Aminet) and the evaluation version of
  939.        `Dice' (for example per FTP from `ftp.uni-paderborn.de', directory
  940.        `/news/comp.binaries.amiga/volume91/languages' or on Fish disk
  941.        491).  The advantage of gcc is that you find gcc versions all over
  942.        the world and on all computer systems. Another advantage is that
  943.        C++ is included into gcc! But it is slow and needs 4Mb of RAM or
  944.        more.  See The GNU C compiler.  See Mailing lists.
  945.   
  946.        Commercial C compilers are `Aztec-C', `Dice' and `SAS/C'.
  947.        `Aztec-C' doesn't seem to get further development any more.  It
  948.        should be remarked that the commercial compilers have especially
  949.        wonderful debugging utilities (Source level debuggers!) that the
  950.        others are missing.
  951.   
  952.        SAS/C has announced to drop support of the Amiga-Compiler, too,
  953.        due to the Amiga's bad situation. However, the compiler is still
  954.        available and up-to-date and has a crosscompiler included, which
  955.        translates C++ to C and supports the source level debugger too.
  956.        Considering the price of just 99$ for students and updates from
  957.        recent versions or other compilers it is still the most
  958.        recommendable of the three. In europe the compiler is available
  959.        from
  960.                 SAS Institute GmbH
  961.                 PO Box 10 53 40
  962.                 69043 Heidelberg
  963.                 Germany
  964.             
  965.                 Phone: (49)6221-4160
  966.                 EMail: eurdoc2@vm.sas.com
  967.   
  968.        Dice is the cheapest and fastest commercial compiler. The greatest
  969.        disadvantage of Dice (compared to the other commercial compilers)
  970.        is the so-called Source-Line-Debugger: This means that you see the
  971.        current line of source and can execute the program step by step,
  972.        like with the other debuggers. On the other hand you can examine
  973.        memory only, not the variables.  To get information about DICE,
  974.        send email to info@oic.COM. An automatic system will return
  975.        complete details, including upgrade prices.
  976.   
  977.        Comeau C++ is a crosscompiler like SAS/C++. That wouldn't be a
  978.        problem, but Comeau C++ doesn't have a C compiler included.  You
  979.        need SAS/C, Aztec-C or Dice additionally. But it is AT&T cfront 3.0
  980.        compliant and supports exceptions. And like gcc it runs on many
  981.        platforms.  Maxxon C++ is offered in Germany. I cannot say
  982.        anything on it. Both compilers are commercial. Comeau's address is:
  983.                 Comeau computing
  984.                 91-34, 120th Street
  985.                 Richmond Hill, NY, 11418-3214
  986.                 USA
  987.             
  988.                 EMail: Greg Comeau, comeau@bix.com
  989.   
  990.   *Forth*
  991.        JForth is said to be an excellent Amiga port of Forth. Among its
  992.        advantages are object oriented extensions, full Amiga interface
  993.        and an application generator. It is available from:
  994.                 Delta Research
  995.                 P.O. Box 151051
  996.                 San Rafael, CA   94915-1051
  997.             
  998.                 Phone: (415) 453-4320
  999.                 EMail: Phil Burk, phil@ntg.com
  1000.                        Mike Haas, haas@starnine.com
  1001.   
  1002.   *Fortran*
  1003.        (Sigh! Still people who need it :-<) Freely distributable are BCF
  1004.        (Fish disk 470) and f2c, a Fortran to C converter (Aminet,
  1005.        directory `/dev/lang'). A commercial compiler is offered from
  1006.        ABSoft. All these are Fortran 77 compilers, I don't know any
  1007.        Fortran 90 compiler on the Amiga.
  1008.   
  1009.   *Lisp*
  1010.        Freely distributable Lisp interpreters are XLisp (Fish disk 181)
  1011.        and OakLisp (Fish disks 519 and 520) and CLISP
  1012.        (`/pub/lisp/clisp/binaries/amiga' at the server `ftp
  1013.        ma2s2.mathematik.uni-karlsruhe.de'). Lisp compilers are Gambit
  1014.        (Fish 764 and 765) and Scheme-to-C (Fish disks 556, 557 and 558).
  1015.        See Mailing lists.
  1016.   
  1017.   *Prolog*
  1018.        `/dev/lang/UNSWProlog.lha' and `dev/lang/sbp3_1e.lha' on Aminet as
  1019.        well as `SBProlog' on Fish disk 141 and `SBProlog' on Fish disk
  1020.        145 are freely distributable Prolog interpreters.
  1021.   
  1022.   *Modula-2*
  1023.        M2Amiga is offered in Europe, Benchmark Modula-2 in the U.S. Both
  1024.        are said to be very good, have a powerful source-level-debugger, a
  1025.        large library.  Especially M2Amiga has great support by a german
  1026.        user-group (AMOK) which for example offers own PD disks. See
  1027.        Mailing lists.
  1028.   
  1029.        M2Amiga is offered by:
  1030.                 A+L AG
  1031.                 Daderiz 61
  1032.                 2540 Grenchen
  1033.                 Schweiz
  1034.             
  1035.                 Tel.: +41/65/52 03-11
  1036.                 Fax:              -79
  1037.   
  1038.        Benchmark Modula-2 is available from:
  1039.                 Armadillo Computing
  1040.                 5225 Marymount Drive
  1041.                 Austin, Texas 78723
  1042.                 USA
  1043.             
  1044.                 Phone/FAX: 512/926-0360.
  1045.                 EMail: Jim Olinger, jolinger@bix.com
  1046.   
  1047.   *Oberon*
  1048.   *Oberon-2*
  1049.        Two compilers (both Oberon-2) are available: AmigaOberon
  1050.        (commercial) is offered by the same company as M2Amiga. It is
  1051.        integrated into a full developers environment and has a large
  1052.        library of modules.  Library linker and  source level debugger are
  1053.        available.
  1054.   
  1055.        Oberon-A is a Freeware compiler. (Source: Aminet, `dev/obero'
  1056.        directory) However, this is a beta release, especially the module
  1057.        library is limited. See Mailing lists.
  1058.   
  1059.        The AMOK user group supports AmiOberon as well as M2Amiga.
  1060.   
  1061.   *Pascal*
  1062.        There is a PD-compiler called PCQ (Directory `dev/lang' on Aminet
  1063.        or Fish disk 511). It doesn't support all of Pascal and major
  1064.        features are missing. P2C, a pascal to C converter is on disk 341.
  1065.        (Aminet: `/dev/misc/p2c120.lha') Additionally there are two
  1066.        commercial compilers called HiSoft Pascal and KickPascal. HiSoft
  1067.        Pascal and P2C claim to be compatible to Turbo Pascal up to 5.0.
  1068.        HiSoft has a source level debugger included.
  1069.   
  1070.   4.6 Those never working Esc sequences!
  1071.   ======================================
  1072.   
  1073.      Many printers come with a manual that explains which Esc sequence
  1074.   causes which action on the printer. But there happen weird things when
  1075.   you try to send these sequences to your printer, either it does
  1076.   nothing, or it does something completely different. There is a reason,
  1077.   the Amiga printer drivers. These drivers are made in a way that they
  1078.   only understand a certain set of `ANSI Esc sequences', not the special
  1079.   ones defined (differently) by the various printer manufacturers. The
  1080.   purpose is that every application on the Amiga just uses this one
  1081.   standard set of control sequences and this way doesn't need to know
  1082.   which printer is actually connected. The printer driver then translates
  1083.   these standard sequences into the special sequences a certain printer
  1084.   understands.  A list of the available ANSI Esc sequences is found in
  1085.   the current Workbench manuals (or older AmigaDOS manuals). Now if you
  1086.   want to issue a control sequence to the printer that's not available as
  1087.   an ANSI command, you have two possibilities to achieve this:
  1088.     1. Bypass the printer driver (that would unsuccessfully try to
  1089.        interpret the sequence) and send your output *only* during this
  1090.        sequence to `PAR:' (or `SER:', respectively). For this you have to
  1091.        close and open printer output channels very often which is rather
  1092.        tedious, and you have to know where (`PAR:' or `SER:') your
  1093.        printer is connected.
  1094.   
  1095.     2. Use a special ANSI sequence, made exactly for this case:
  1096.                 `Esc[<n>"<x>'
  1097.        where `<n>' is the decimally typed number of bytes in the string
  1098.        `<x>', which actually contains your special printer sequence. This
  1099.        ANSI sequence tells the printer driver to not interpret or
  1100.        translate the next `<n>' bytes.
  1101.           But both methods have one big disadvantage when used in an
  1102.   application program: You lose the printer independency! If you stick to
  1103.   ANSI sequen- ces, you can output to any printer on earth, as long as
  1104.   there is an Amiga printer driver for it. If you start to use special
  1105.   control sequences, your program will be tied to this single printer
  1106.   model and will not be usefull for any other (or you would have to
  1107.   provide some dozen new printer drivers for your application).
  1108.   
  1109.      Dr. Peter Kittel, peterk@cbmger.de.so.commodore.com
  1110.   
  1111.   4.7 Is it possible to use AmigaBasic on the A1200?
  1112.   ==================================================
  1113.   
  1114.      We heard conflicting reports about AmigaBasic on the A1200: While I
  1115.   said that you can work sufficiently with it, others said that this
  1116.   isn't possible, as AmigaBasic crashes on the slightest little error.  I
  1117.   couldn't reproduce this.
  1118.   
  1119.      Now I can. It depends on the setting in the Sound Prefs editor. When
  1120.   you activate a sound there, this conflicts with sound that AmigaBasic
  1121.   tries to produce by hand and obviously not quite the correct way itself.
  1122.   
  1123.      Easy solution: To work with AmigaBasic on the A1200, just
  1124.     1. Switch off sound output in the Sound prefs editor.
  1125.   
  1126.     2. On the A4000 (as well as on an A1200 with Fast Mem expansion (1))
  1127.        you  additionally need to run NoFastMem.
  1128.   
  1129.     3. Better avoid SUBs and use conventional GOSUBs instead, then the
  1130.        compatibility with newer processors will be higher.
  1131.   
  1132.      Dr. Peter Kittel, peterk@cbmger.de.so.commodore.co
  1133.   
  1134.      ---------- Footnotes ----------
  1135.   
  1136.      (1)  If you have a turbo board
  1137.   
  1138.   4.8 How do I localize my program?
  1139.   =================================
  1140.   
  1141.      Suggest, you want to write a `HelloLocalWorld.c'. Your final program
  1142.   will look like this:
  1143.   
  1144.            #include "HelloLocalWorld_Cat.h"
  1145.            #include <clib/exec_protos.h>
  1146.        
  1147.            struct Library *LocaleBase;
  1148.        
  1149.            void main(int argc, char *argv[])
  1150.        
  1151.            {
  1152.                /* Open the locale.library. No kill, if not successfull.
  1153.                   (Just use the builtin catalog strings instead.) Note, that
  1154.                   we open locale.library here, even if our compiler supports
  1155.                   AutoOpening.
  1156.                */
  1157.                LocaleBase = OpenLibrary("locale.library", 38);
  1158.                OpenHelloLocalWorldCatalogs(NULL, NULL);
  1159.        
  1160.                printf(GetString(MSG_Hello));
  1161.        
  1162.                CloseHelloLocalWorldCatalog();
  1163.                if (LocaleBase) CloseLibrary(LocaleBase);
  1164.            }
  1165.   
  1166.      The routine GetString checks, if the wished catalogs are available
  1167.   and returns a pointer to either the builtin string or the catalog
  1168.   string. (In my case the german string.)
  1169.   
  1170.      You see, the main difference besides the minor opening and closing
  1171.   stuff (OpenLibrary, OpenHelloLocalWorldCatalogs, ...) is to replace
  1172.   strings with a function call. Hence we need a file
  1173.   `HelloLocalWorld_Cat.c', which holds OpenHelloLocalWorld, GetString,
  1174.   CloseHelloLocalWorld and the builtin strings (this could be an array,
  1175.   where
  1176.                array[MSG_Hello] = "Hello, local world.\n";
  1177.   
  1178.   is defined) and an include file `HelloLocalWorld_Cat.h', which defines
  1179.   the message ID's like MSG_Hello. You don't need to know, how these files
  1180.   work internally, especially you don't need to know `locale.library'!
  1181.   
  1182.      There are some catalog generators (in what follows: CGs) available
  1183.   (`CatComp', for devlopers only, `KitCat', german docs only, `MakeCat',
  1184.   which I don't know and `FlexCat', which I  recommend, because it is
  1185.   most flexible in the generated source and supports catalogs on 2.0 and
  1186.   any language, even Amiga-E, Cluster, Pascal, ... and besides that: I'm
  1187.   the author ;-) are tools, that create  HelloLocalWorld_Cat.h,
  1188.   HelloLocalWorld_Cat.c and the real catalogs for you. (The above code
  1189.   might differ slightly between the different CGs.) (See Aminet, directory
  1190.   `dev/misc'.)
  1191.   
  1192.      Of course they need to know how to use them. First create a so-called
  1193.   `catalog-description' file. This could look like this:
  1194.            ; Lines beginning with a semicolon are comment lines.
  1195.            # language english
  1196.            ; the language of the builtin strings
  1197.            # version 0
  1198.            ; the catalog version (0 = any)
  1199.            MSG_Hello (1/15/30)
  1200.            Hello, local world
  1201.   
  1202.   Any string is defined by a line like the last two lines above: MSG_Hello
  1203.   is the message-ID, (1/15/30) says, that the value of MSG_Hello should be
  1204.   1 (you may omit this, in which case just the next free number is used)
  1205.   and the string must not be shorter than 15 characters or longer than 30
  1206.   characters. (These may be omitted too.)
  1207.   
  1208.      Now write your program. Once you are ready, use the CGs to create a
  1209.   so-called catalog translation file. (One for any language different than
  1210.   the builtin.) In my case (german) this could look like this:
  1211.            ; Lines beginning with a semicolon are comment lines.
  1212.            ## language deutsch
  1213.            ; the catalog language (german)
  1214.            ## version $VER: Deutsch.catalog 1.0 (22.12.93)
  1215.            ; the catalog files version string
  1216.            MSG_Hello
  1217.        
  1218.            ; Hello, local world
  1219.   
  1220.   Note the empty line after the message ID. (The arguments of ## language
  1221.   and ## version would be missing as well.) You have to fill in the
  1222.   german strings here. Again using the CGs you create a catalog file from
  1223.   this. Additionally note, that no informations on the strings ID or
  1224.   length are behind MSG_Hello.  They are taken from the catalog
  1225.   description file.
  1226.   
  1227.      Once you change the program (adding strings, changing the string
  1228.   length) you change the catalog description as well, use the CGs in the
  1229.   same way to update the catalog translation and hence the catalogs.
  1230.   
  1231.   4.9 How to obtain a pointer to a console's window
  1232.   =================================================
  1233.   
  1234.      The following function returns the window pointer of a CON window.
  1235.   It can be executed safely under all versions of the Amiga's OS.
  1236.   
  1237.          struct Window *getConWindowPtr(BPTR fh)
  1238.          {
  1239.            struct Window *w;
  1240.            struct FileHandle *cfh;
  1241.            struct StandardPacket *sp;
  1242.            struct InfoData *id;
  1243.            struct MsgPort *mp;
  1244.        
  1245.            w = NULL;
  1246.        
  1247.            if ((cfh = BADDR(fh))->fh_Type != NULL) {
  1248.              if (sp = AllocMem(sizeof (struct StandardPacket),
  1249.                                MEMF_PUBLIC | MEMF_CLEAR)) {
  1250.                if (id = AllocMem(sizeof (struct InfoData),
  1251.                                  MEMF_PUBLIC | MEMF_CLEAR)) {
  1252.                  if (mp = CreatePort(NULL, 0)) {
  1253.                    sp->sp_Msg.mn_Node.ln_Name = (char *) &sp->sp_Pkt;
  1254.                    sp->sp_Pkt.dp_Link         = &sp->sp_Msg;
  1255.                    sp->sp_Pkt.dp_Port         = mp;
  1256.                    sp->sp_Pkt.dp_Type         = ACTION_DISK_INFO;
  1257.                    sp->sp_Pkt.dp_Arg1         = MKBADDR(id);
  1258.        
  1259.                    PutMsg(cfh->fh_Type, &sp->sp_Msg);
  1260.                    (void) WaitPort(mp);
  1261.                    (void) GetMsg(mp);
  1262.        
  1263.                    if (sp->sp_Pkt.dp_Res1)
  1264.                      w = (struct Window *) id->id_VolumeNode;
  1265.        
  1266.                    DeletePort(mp);
  1267.                  }
  1268.                  FreeMem(id, sizeof (struct InfoData));
  1269.                }
  1270.                FreeMem(sp, sizeof (struct StandardPacket));
  1271.              }
  1272.            }
  1273.        
  1274.            return w;
  1275.          }
  1276.   
  1277.      Notes:
  1278.      * Accessing a console's window directly may interfere with operations
  1279.        performed by the CON handler. Be careful!
  1280.   
  1281.      * To obtain the window pointer of a CLI's console, pass the
  1282.        FileHandle returned by Open("*", MODE_OLDFILE) to the above
  1283.        function.
  1284.   
  1285.      * The result of the above function may well be NULL, e.g. in case of
  1286.        an AUX handler or if an AUTO CON handler is unable to open its
  1287.        window.
  1288.   
  1289.      * Sending an ACTION_DISK_INFO packet to an AUTO CON handler (2.0+)
  1290.        causes its window to lose its special AUTO properties (i.e. it can
  1291.        no longer be closed at any time by clicking on its Close gadget),
  1292.        as the window pointer returned in id_VolumeNode must remain valid
  1293.        from now on.
  1294.   
  1295.      * All in all: Don't use this function. :-)
  1296.   
  1297.      For more information, please refer to pages 273, 276, 435, 463, 485,
  1298.   and 629 in "The Amiga Guru Book" (see Manuals).
  1299.   
  1300.      Ralph Babel, rbabel@babylon.pfm-mainz.de
  1301.   
  1302.   4.10 What are pragmas?
  1303.   ======================
  1304.   
  1305.      Pragmas are special compiler commmands which control certain
  1306.   features of a C-compiler. Two problems arise when using pragmas:
  1307.     1. Pragmas are compiler specific. You cannot expect that one compiler
  1308.        will understand pragmas of another compiler, even if both run on
  1309.        the Amiga.
  1310.   
  1311.     2. You are not guaranteed that a compiler ignores pragmas, that he
  1312.        doesn't understand. Even more: It might not help, to use something
  1313.        like this:
  1314.                 #ifndef MY_COMPILER
  1315.                 #pragma DoAnything
  1316.                 #endif
  1317.   
  1318.   A workaround is to put pragmas in a special include file (BTW, the same
  1319.   holds true for statements like #asm (Aztec-C) or #extern (C++) and
  1320.   replace the above with
  1321.            #ifndef MY_COMPUTER
  1322.            #include <mypragmas.h>
  1323.            #endif
  1324.   
  1325.      But what do pragmas on the Amiga? The most common usage (not the
  1326.   only, but most meant when talking about pragmas) is to tell the
  1327.   compiler about how to call library functions: Simple C functions expect
  1328.   their arguments on the stack, but library functions want their
  1329.   arguments in special processor registers and additionally the `library
  1330.   base' in register a6. Lets have a look at a pragma command of the
  1331.   Aztec-Compiler.
  1332.            #pragma amicall(SysBase,0xd2,FreeMem(a1,d0))
  1333.   
  1334.   This tells the compiler to put the first argument of FreeMem in register
  1335.   a1, the second in register d0 and the value of the variable SysBase in
  1336.   register a6. Maxons pragmas look the same, Dice pragmas and SAS pragmas
  1337.   look a bit more complicated;
  1338.            #pragma libcall SysBase FreeMem d2 0902
  1339.   
  1340.   Here d2 is (like 0xd2 above) the `library vector offset' (see below),
  1341.   the digits 09 are codes for the argument register in reversed order
  1342.   (Register codes are 0=d0, 1=d1, .., 8=a0, 9=a1, a=a2, ..), the
  1343.   following 0 is the result's registerä(always d0))and the final digit 2
  1344.   is the number of arguments.
  1345.   
  1346.      A command `FreeMem(fib,sizeof(*fib);' could produce the following
  1347.   code, if the compiler has seen a pragma statement like above:
  1348.            move.l  _fib,a1
  1349.            move.l  260,d1        ; sizeof(struct FileInfoBlock)
  1350.            move.l  _SysBase,a6
  1351.            jsr     -0xd2(a6)       ; 0xd2 = _LVOFreeMem
  1352.   
  1353.   Calling FreeMem in that way is shorter and faster than pushing the
  1354.   arguments on the stack, calling a function _FreeMem which would do just
  1355.   the same like the above code by pulling the arguments from the stack.
  1356.   
  1357.      The best way to use pragmas is to include statements like the
  1358.   following in your program:
  1359.            /*    Get the prototype for the function; note, that this is    */
  1360.            /*    compiler independent.                    */
  1361.            #include <clib/exec_protos.h>
  1362.        
  1363.            /*    Get the pragma; compiler dependent, but most pragmas    */
  1364.            /*    are in files with the same name.
  1365.            #ifdef AZTEC_C
  1366.            #include <pragmas/exec_lib.h>
  1367.            #endif
  1368.            #if defined(__SASC) || defined(_DCC) || defined(__MAXON__)
  1369.            #include <pragmas/exec_pragmas.h>
  1370.            #endif
  1371.            #ifdef __GNUC__
  1372.            #include <inline/exec.h>
  1373.            #endif
  1374.   
  1375.   The above example can be compiled on all these compilers and produce the
  1376.   best code.
  1377.   
  1378.      A final question arises: How to get the pragmas? Most compilers have
  1379.   them included. However, sometimes you want to produce pragmas for
  1380.   yourself, for example if you are using new libraries or new versions
  1381.   with additional functions. In that case you can produce them from the
  1382.   so-called `FD' files which should be a part of the developer docs of
  1383.   the library. (The NDU has a directory FD which contains FD files for
  1384.   all libraries and devices of the OS. see Includes) Most compilers have
  1385.   a utility with the name `fd2pragma' or similar included which can do
  1386.   that for you. A freely distributable version which can produce pragmas
  1387.   for Aztec, Dice, SAS and Maxon as well as LVO files for assembler and
  1388.   stub routines for the tag versions is available on Aminet
  1389.   (`dev/misc/fd2pragma2_0.lha' and on the Fish CDs.
  1390.   
  1391.      For pragmas under gcc see Inline Headers.
  1392.   
  1393.   4.11 My Compiler/Linker is complaining about missing symbol xxx.
  1394.   ================================================================
  1395.   
  1396.      First be sure, that the function is really missing: For example
  1397.   floating point functions are in a special link library and you need a
  1398.   linker option like `-lm' to include it into your program. Another
  1399.   possibility would be that you are using a library function and didn't
  1400.   notice it. This might lead to a missing library base, `IntuitionBase'
  1401.   for example. In that case just put something like
  1402.            struct Library *IntuitionBase;
  1403.   
  1404.   somewhere in the global part of your program. (Don't forget to call
  1405.   OpenLibrary() and CloseLibrary! :-)
  1406.   
  1407.      However, you could as well use a function which really isn't present
  1408.   in your library at all. If you have, for example, an amiga.lib from 2.0
  1409.   you would hardly find the locale functions or the pool memory
  1410.   functions. (1) Best solution is to get the NDU (see Includes), but you
  1411.   probably don't want to wait for it. In that case you have to find what
  1412.   kind of function you are missing.
  1413.      * Simple library functions (Examples: `exec/AllocPooled',
  1414.        `locale/OpenCatalogA') can be called with pragmas. However, you
  1415.        need informations on the name of the library base and where to put
  1416.        the arguments. See Pragmas.
  1417.   
  1418.      * Tag functions are mostly just stub functions which call library
  1419.        functions. If you have, for example, `dos/AllocDosObject' which
  1420.        expects a constant and a pointer to an array of tags, you have the
  1421.        varargs version `AllocDosObjectTags' which expects tags on the
  1422.        stack as well! Just create the following function:
  1423.                 #include <clib/dos_protos.h>
  1424.                 #include <pragmas/dos_pragmas.h>    /*  Probably wrong name */
  1425.             
  1426.                 void *AllocDosObjectTags(ULONG objtype, Tag tag1, ...)
  1427.                 { return(AllocDosObject(objtype, (struct TagItem *) &tag1);
  1428.                 }
  1429.   
  1430.      * Some functions still remain: Amiga.lib has some functions which
  1431.        are really doing valuable things and not just call a library: The
  1432.        BOOPSI functions (`DoMethod', `DoSuperMethod') the memory pool
  1433.        functions (`LibAllocPooled', `LibCreatePool', which are
  1434.        replacements of 3.0 functions). The only way to replace these is
  1435.        to get equivalents. The AmigaFAQ archive contains some of them
  1436.        (DoMethod, DoSuperMethod and HookEntry) in the `programmer'
  1437.        directory as well as the most common pragma files and some
  1438.        examples of varargs functions. See Amiga-FAQ Archive.
  1439.   
  1440.      ---------- Footnotes ----------
  1441.   
  1442.      (1)  This problem arises most frequently for owners of Aztec which
  1443.   is no longer supported and owners of Dice, which has sometimes rather
  1444.   incomplete libraries. I own both ...
  1445.   
  1446.   4.12 Where do I find the function xxx?
  1447.   ======================================
  1448.   
  1449.      If you are not sure about the name of the appropriate function for a
  1450.   certain job or in which library to find it, you can search in these
  1451.   places:
  1452.      * In the Autodocs for each library you find at the very beginning a
  1453.        contents table listing all functions available in this library.
  1454.        They are sorted alphabetically, just like in the rest of the
  1455.        Autodocs.  In the body part of the Autodocs you find complete
  1456.        explanations and specifications for each library function. See
  1457.        Includes.
  1458.   
  1459.      * The .FD files also offer a very compact overview over all functions
  1460.        of the diverse libraries, complete with a short information about
  1461.        the function arguments. If you already know roughly what you
  1462.        search for and e.g. only need the precise order of the arguments,
  1463.        you can find all needed information here. See Pragmas.
  1464.   
  1465.      Dr. Peter Kittel, peterk@cbmger.de.so.commodore.com
  1466.   
  1467.   4.13 The GNU C compiler: general information and installation
  1468.   =============================================================
  1469.   
  1470.      This chapter contains general and installation information about the
  1471.   amiga-port of the GNU C compiler gcc.
  1472.   
  1473.   4.13.1 Current Version
  1474.   ----------------------
  1475.   
  1476.      Gcc current version is now 2.6.0 and 2.6.1 is in work.  It does
  1477.   include a new version of ixemul.library, v40.3, but users are urged to
  1478.   get ixemul404.lha on Aminet site or my own FTP site, due to errors for
  1479.   68000 systems. A new library, libnix, avoid using ixemul.library.
  1480.   2.6.1 will include protos, like SAS-C, making SASC ports to GCC easier.
  1481.   A new assembler, gas-2.5 is included, a package called q_anote enables
  1482.   output of mixing C/Asm code for debugging purposes.  Work is in
  1483.   progress to implement stack growing facility, thus avoiding setting
  1484.   stack before launching gcc.
  1485.   
  1486.   4.13.2 Requirements
  1487.   -------------------
  1488.   
  1489.      Any Amiga (ranging from A1000 upto A4000/40) will run amigados-gnu
  1490.   utilities. A minimum of 4MB memory is needed in order to compile
  1491.   small/medium projects. More memory will be needed for large projects,
  1492.   such as recompiling gcc itself, or programming C++. Gigamem and VMM do
  1493.   work with GCC so *maybe* less memory will work. But in this case, an
  1494.   MMU equipped Amiga (A3000,A4000/40) is necessary.  See 68EC0xx.
  1495.   
  1496.      A full installation, including C++/ObjC related files, inline
  1497.   headers, cbm-headers, (see Includes) roughly requires about 20 MB of HD
  1498.   space.
  1499.   
  1500.      Support for 1.2/1.3 is dropped. If you have 1.2/1.3, get a better
  1501.   Kickstart version. Gcc works under KS 1.2/1.3, but the full
  1502.   functionality is only available under KS 2.x+. A fast CPU (eg.
  1503.   68030@25MHz or better) is also of help.
  1504.   
  1505.   4.13.3 Authors
  1506.   --------------
  1507.   
  1508.      Gcc and related GNU-software has been ported to the Amiga by the
  1509.   following folks: See How to get help.
  1510.            Gcc v2.2.2 port:   Markus Wild
  1511.            Gcc v2.3.3 port:   Markus Wild
  1512.            Gcc v2.4.5 port:   Philippe Brand, Lars Hecking, Fred Fish
  1513.            Gcc v2.5.0 and up: Philippe Brand, Fred Fish, Leonard Norrgard
  1514.        
  1515.            Ixemul.library:    Markus Wild, Leonard Norrgard, R. Luebbert
  1516.            Libnix:           Matthias Fleischer, Gunther Nikl
  1517.                Gerlib:            Gerhard Mueller
  1518.   
  1519.   4.13.4 Sources for Gcc
  1520.   ----------------------
  1521.   
  1522.      All GCC sources & binaries are available on:
  1523.   
  1524.     1. Aminet sites (wuarchive.wustl.edu and mirrors such as ftp.luth.se)
  1525.        in /pub/aminet/dev/gcc
  1526.   
  1527.     2. Ramses The Amiga Flying BBS:
  1528.                 +33-1-60037015  HST Dual v32 terbo 4800-21600
  1529.                     +33-1-60037713  SupraFax v32bis    4800-14400
  1530.                     +33-1-60037716  Tornado v22bis     1200-2400
  1531.        in Topic `Development', Area `Gcc' (are 156).
  1532.   
  1533.      GNU source code is available on:
  1534.   
  1535.     1. the same FTP site you've taken the binary distribution from
  1536.   
  1537.     2. gnu.prep.ai.mit.edu (18.71.0.38) in `/pub/gnu'
  1538.   
  1539.     3. Ramses The Amiga Flying BBS in Topic
  1540.        `AmigaUnix/Unix/Linux/NetBSD', Area `Gnu Source Code'
  1541.   
  1542.      These archives should contain everything necessary to get you going,
  1543.   they don't include sources for ixemul.library, which are available on
  1544.   Aminet sites in `/pub/aminet/dev/gcc/ixemsrc3947.tar.gz' (as of this
  1545.   writing, work is in  progress for the v40 version of ixemul.library,
  1546.   sources will be available on an Aminet site near you).
  1547.   
  1548.      As stated by Richard Stallman of the FSF:
  1549.   
  1550.      "The GPL says that any distribution of binaries must contain either
  1551.   the source code or a written offer to supply source code (see the GPL
  1552.   for details of what is required)."
  1553.   
  1554.   4.13.5 Inline Headers
  1555.   ---------------------
  1556.   
  1557.      The inline headers for gcc can be created from the original CBM fd
  1558.   files.  See Includes. See Pragmas. They can be created as follows:
  1559.   
  1560.        CLI> Assign INCLUDE: GCC:os-include
  1561.        CLI> Assign FD: INCLUDE:fd
  1562.        CLI> Makedir INCLUDE:inline
  1563.        CLI> cd USR:bin/geninline
  1564.        CLI> gen31
  1565.   
  1566.      This will create all inline-headers in `GCC:os-include/inline'.  If
  1567.   you have 2.0 headers, use gen20 instead, if you have 3.0, use gen30.
  1568.   OS3.1 (rev 40.13) inline headers are included with the current version
  1569.   of gcc. See Current Version.
  1570.   
  1571.      NOTE: perl scripts do not handle correctly AmigaDOS include files,
  1572.   which seems to mean they are somewhat broken. This needs some voluntary
  1573.   work ...
  1574.   
  1575.      There is also another way of generating inline headers, using
  1576.   fd2inline program:
  1577.   
  1578.        CLI> fd2inline <fd_file> <proto_file>
  1579.   
  1580.   4.13.6 Amiga Libraries
  1581.   ----------------------
  1582.   
  1583.      Starting from this release an AmigaDOS compliant library is provided,
  1584.   thanks to libnix authors (Matthias Fleischer and Gunther Nikl).
  1585.   
  1586.      Anyway if you want to rebuild one, there are two methods:
  1587.   
  1588.      1) Using hunk2gcc; the AmigaDOS object converter made by Markus
  1589.   Wild. To achieve this, simply grab a copy of latest amiga.lib (from
  1590.   Commodore Development Kit, see Includes) and make a new directory where
  1591.   you want your converted object files to go, cd into it, and enter
  1592.   
  1593.            hunk2gcc amiga.lib [..further libs if you like..]
  1594.   
  1595.      This generates an a.out object file for every program unit present
  1596.   in the hunk file (in this case, from amiga.lib).
  1597.   
  1598.      As the final step convert all those files into an a.out style
  1599.   library by issuing:
  1600.   
  1601.            ar qc libamiga.a obj.*
  1602.            ranlib libamiga.a
  1603.   
  1604.      The ranlib run builds a symbol table in the archive, and makes
  1605.   accesses to the library much faster.
  1606.   
  1607.      2) Creating a libamiga.a library with libnix is fairly easy, but
  1608.   takes some time. Just uncompress sources.lha from libnix distribution
  1609.   and run a `make libamiga.a'.
  1610.   
  1611.      *Note:* As long as you make no AmigaDOS specific calls, you can
  1612.   create a dummy library using:
  1613.   
  1614.          cat "int dummy;" >dummy.c
  1615.          gcc -c dummy.c
  1616.          ar crv libamiga.a dummy.o
  1617.          mv libamiga.a gcc:lib
  1618.   
  1619.   4.13.7 Installation
  1620.   -------------------
  1621.   
  1622.     1. If this is your first installation of GCC:
  1623.   
  1624.        Do the following:
  1625.   
  1626.             cd place_with_lot_of_space      ; EDIT! specify one
  1627.             makedir gnu
  1628.             lha x gcc260-base.lha           ; first part, you need it
  1629.   
  1630.        Now you have to append `gnu/s/user-startup' to your
  1631.        `s:user-startup' (replace Devel:GNU by your own gnu path).
  1632.   
  1633.        Continue:
  1634.   
  1635.             execute gnu/s/user-startup      ; makes important assigns
  1636.             copy gnu/envarc/#? ENVARC:
  1637.   
  1638.        *Edit* the following lines!  If you have a 68000 or 68010 Amiga,
  1639.        remove the "-020" from the following lines wherever it appears!
  1640.   
  1641.             lha x gcc260-c-020.lha      ; C-compiler part; you need it
  1642.             lha x gcc260-doc.lha        ; only if you want Gcc documentation
  1643.             lha x gcc260-c++-020.lha    ; only if you want C++
  1644.             lha x gcc260-objc-020.lha   ; only if you want Objective-C
  1645.             lha x gcc260-utils.lha      ; only if you want additional utilities
  1646.                                         ; (recommended for Unix compatibility)
  1647.             lha x gcc260-utilsdoc.lha   ; if you want all utilities documentation
  1648.   
  1649.        You must restore links between some programs by running the script
  1650.        `restorelinks':
  1651.   
  1652.             sh /gnu/s/restorelinks      ; EDIT! Append a " copy" to this line
  1653.                                         ; if you don't want to use makelink
  1654.                                         ; but rather copy file
  1655.   
  1656.        Last part:
  1657.   
  1658.             lha x gcc260-diffs.lha      ; if you want to rebuild all distribution
  1659.             lha x gcc260-texi.lha       ; if you want to build Postscript doc files
  1660.   
  1661.        Now skip to next paragraph and happy compiling!
  1662.   
  1663.     2. If you "upgrade" your gcc environment from v2.5.x, just unarchive
  1664.        first 2 archives as it would normally include all what you need
  1665.        (thus gcc260-base and gcc260-c). Make sure you delete your
  1666.        previous ixemul.library wherever it is (usually LIBS:).
  1667.   
  1668.   
  1669.      *Note*:  new version of ixemul.library is provided, make sure you
  1670.   don't have another copy somewhere which may conflict with gcc.
  1671.   
  1672.   4.13.8 Compiling
  1673.   ----------------
  1674.   
  1675.      What about a nice Hello World ?
  1676.   
  1677.        #include <stdio.h>
  1678.        
  1679.        main()
  1680.        {
  1681.          printf("Hello World!\n");
  1682.        }
  1683.   
  1684.      This was pretty simple ;-) Now we have to compile it.  There's a lot
  1685.   of options in gcc but simplest way to compile this would be:
  1686.   
  1687.        CLI> gcc -o hello hello.c
  1688.   
  1689.      Simple ?
  1690.   
  1691.      Here's more options.
  1692.   
  1693.      Target processor for Motorola family: You can compile plain 68000
  1694.   code, 68020, 68030, 68040, 68881 (have a look at GCC documentation,
  1695.   either in info or AmigaGuide format, chapter `Invoking Gcc/SubModel
  1696.   Options/M680X0 Options for Motorola specific compilation flags').
  1697.   
  1698.        CLI> gcc -m68020 -m68881 -o hello hello.c
  1699.   
  1700.      This will compile your programs using 68020 code and direct calls to
  1701.   math-processor, and will link with accelerated libraries, located in
  1702.   `GCC:lib/lib020'.
  1703.   
  1704.      Optimization: Either you don't want optimization, or you can provide
  1705.   `-O', which will optimize your code, or if you really want top
  1706.   optimization, use `-O2' flag (for more discussion about optimization,
  1707.   read info or AmigaGuide doc chapter Invoking Gcc/Optimize Options).
  1708.   There's now even a `-O3' optimization option, which will go even
  1709.   further.
  1710.   
  1711.        CLI> gcc -O2 -o hello hello.c
  1712.   
  1713.      You'll never have a "Hello World" program running so fast ;-)
  1714.   
  1715.      Code generation: Perhaps you want to generate resident programs.
  1716.   Flag is -resident, at compile and link stage.
  1717.   
  1718.        CLI> gcc -resident -o hello hello.c
  1719.   
  1720.      Of course you can mix all options, resulting in:
  1721.   
  1722.        CLI> gcc -O2 -m68020 -m68881 -resident -o hello hello.c
  1723.   
  1724.      This will make a 68020+68881 executable highly optimized and
  1725.   resident.
  1726.   
  1727.      IMPORTANT: If you only use AmigaDOS functions or you don't want to
  1728.   use ixemul for philosophical reasons, you can get rid of ixemul.library
  1729.   with:
  1730.   
  1731.        CLI> gcc -noixemul -o foobar foobar.c
  1732.   
  1733.      provided you have libnix distribution (included with 2.6.0
  1734.   distribution).
  1735.   
  1736.   4.13.9 How to get help
  1737.   ----------------------
  1738.   
  1739.      The current amiga-gcc-port maintainer is available:
  1740.   
  1741.            Philippe BRAND
  1742.            Fidonet: Ramses The Amiga Flying BBS 2:320/104.21
  1743.            Email:   phb@colombo.telesys-innov.fr (ONLY for personnal email).
  1744.            Ftp:     colombo.telesys-innov.fr:/pub/amigados-gnu
  1745.                     or /pub/incoming/uploads for uploads.
  1746.   
  1747.      There's also an amiga-gcc mailing list running in Finland.  See
  1748.   Mailing lists.  Philippe Brand will forward all questions to that list,
  1749.   but you'd be better off using it directly ;)
  1750.   
  1751.   5 Applications
  1752.   **************
  1753.   
  1754.      This chapter offers informations about major Applications.
  1755.   
  1756.   5.1 Text Editors
  1757.   ================
  1758.   
  1759.      Text Editors are programs allowing to enter and edit unformatted
  1760.   text.  Generally, this means text that is meant to be manipulated by
  1761.   machine, rather than human. Programmers use these to enter the text for
  1762.   compilers.  Since UNIX machines don't typically have word processors,
  1763.   most text processing starts with a text editor, then is filtered
  1764.   through a page layout system (TeX, for example) to produce attractive
  1765.   paper results.
  1766.   
  1767.   *Commercial Products*
  1768.        CygnusEd Professional and TurboText seem to be the main contenders
  1769.        in the professional realm. The Fred Fish disks contain dozens of
  1770.        other shareware text editors. A demo version of TurboText is on
  1771.        Fish disk 445.  A very old demo of CygnusEd is on Fish disk 95
  1772.        (testament to its lasting-power). In the following some freely
  1773.        distributable editors will be discussed.
  1774.   
  1775.   *Emacs*
  1776.        Gnu Emacs (the "G" is not silent) comes from Unix and is probably
  1777.        the king of editors - it's huge (about 1 Megabyte), feature-packed
  1778.        (it does windows and even contains a game!) and extensible (if you
  1779.        know lisp you can write new emacs functions and bind them to any
  1780.        key combination).  On the other hand, it may be too huge, its
  1781.        feature-ladenness is imposing, and its extensibility often means
  1782.        you can't use someone else's emacs configuration. Source: Aminet
  1783.        (directory `util/gnu').
  1784.   
  1785.   *Vi*
  1786.        The leaner, less configurable, non-extensible cousin to gnu emacs
  1787.        is vi (pronounced "vee eye"). Unix people like vi especially
  1788.        because you find it on *any* Unix machine. What you choose is
  1789.        personal preference, and will mark you for life. Vim is a good vi
  1790.        for the amiga, and is on Fish disk 591 or in the `util/gnu'
  1791.        directory of Aminet.
  1792.   
  1793.   *DME*
  1794.        Many Amiga programmers like DME. It's fast, fully configurable;
  1795.        menus may be created and any key may be mapped. It's much easier
  1796.        to learn DME than than Emacs or Vi. There are three different
  1797.        versions: AmokEd, DME and XDME. It's a matter of opinion which you
  1798.        prefer. (Oberon and Modula programmers like AmokEd because it's
  1799.        written in Oberon and supports AmigaOberon error messages, C
  1800.        programmers like DME or XDME.) Sources: Aminet (directory
  1801.        `util/edit'), Fish disk 776 (XDME) and 749 (AmokEd), AMOK 90.
  1802.   
  1803.   5.2 What word processors are there?
  1804.   ===================================
  1805.   
  1806.      A word processor is the typical application for writing notes,
  1807.   letters or reports on a computer. Unless you prepare newsletters on a
  1808.   weekly basis, your word procesor is probably your workhorse program.
  1809.   Thus choosing one you are comfortable with determines how comfortable
  1810.   you are with your computer. Word processors can offer a variety of
  1811.   features, and many can approach the sophistication required for Desktop
  1812.   Publishing (see DTP) but no one uses them for programming, for which
  1813.   text editors are more suited.
  1814.   
  1815.      One distinguishes between Wysiwyg programs (What you see is what you
  1816.   get) and page layout languages. Wysiwyg programs should be fast,
  1817.   comfortable and easy to use. Most people prefer them. The alternative
  1818.   is an approach that works similar to compilers. You feed text files to
  1819.   a a program that produces the layout which may be previewed on screen
  1820.   or printed. LaTeX takes this approach. See TeX. Lout is another such
  1821.   system which seems smaller, easier to learn and has full documentation
  1822.   included, but it is nonstandard.  Lout produces Postscript output. (I
  1823.   don't know if this is an advantage or disadvantage. ;-) See Postscript.
  1824.   Both programs are freely distributable.
  1825.   
  1826.      There are a lot of wysiwyg programs, but only commercial products:
  1827.   FinalWriter, Final Copy II, Wordworth, Word Perfect, AmiWrite,
  1828.   Beckertext II, Maxon Word and many others. I don't dare to recommend
  1829.   any.  All I can say is: Give yourself time to make a selection.
  1830.   
  1831.   5.3 Desktop Publishing
  1832.   ======================
  1833.   
  1834.      These programs offer features lacking in word processors, usually
  1835.   tailored to flexible arrangement of text, but often don't provide all of
  1836.   the text manipulation that a good word processor provides. The best
  1837.   desktop publishing programs strive to provide the features of both,
  1838.   just as the best word processors strive to provide the features of
  1839.   desktop publishing programs. Microsoft Word (Mac, PC) is a good example
  1840.   of a word processing program that offers many page layout feature.
  1841.   Framemaker (UNIX, Macintosh, DOS, etc.) is an example of a desktop
  1842.   publishing system that offers most needed word processing functions. As
  1843.   yet, no Amiga program has bridged the gap, though the main word
  1844.   processors are coming close. (On the other hand, even many
  1845.   sophisticated programs don't support typesetting mathematics, tables,
  1846.   producing bibliographies, indexes, or cross-references. The page layout
  1847.   languages do, and programs like Frame are improving their support of
  1848.   such features.) Unless you need to prepare fancy newsletters or
  1849.   promotional literature, a word processing program is probably enough.
  1850.   See Word Processors.
  1851.   
  1852.      There are not yet any freely distributable wysiwyg desktop publishing
  1853.   systems. Commercial products are ProPage and PageStream. They have been
  1854.   playing leapfrog for the past few years. It appears that PageStream 3.0
  1855.   is about to leap ahead. A more detailed description of these products
  1856.   and their differences is welcome. Both programs' list prices are $299.
  1857.   Student discounts are available (approx 40% discount.)
  1858.   
  1859.   5.4 What is TeX and where can I get it?
  1860.   =======================================
  1861.   
  1862.      TeX is a very powerful wordprocessing system. It can display
  1863.   mathematical formulas or complex tables as well as function graphs,
  1864.   creates indices, contents and many other things. Its greatest advantage
  1865.   is that it is freely distributable (TeX, not the previewers and the
  1866.   printer drivers!) and that you find TeX all over the world on every
  1867.   computer family. Its greatest disadvantage is that it isn't very handy
  1868.   (works similar to a compiler) and it isn't wysiwyg. But many people
  1869.   like it. (BTW: This document is written using TeX. 8-) See Word
  1870.   Processors.
  1871.   
  1872.      There are two major implementations on the Amiga. The first one,
  1873.   Amiga-TeX, from Thomas Rockicki and Radical Eye software is commercial.
  1874.   It is said to be excellent and his owners seem to be very satisfied.
  1875.   But it costs at least 200$.
  1876.   
  1877.      I recommend PasTeX, a freely distributable version. People seem to
  1878.   have problems installing PasTeX, especially the font loading and
  1879.   generation (It's a quite complex program.) but I did not here anyone
  1880.   upset once it was installed. (A friend with knowledge of TeX helps
  1881.   immensely.) A few words should be said what you need:
  1882.      * 5 disks containing the TeX-compiler itself
  1883.   
  1884.      * 2 disks containing MetaFont
  1885.   
  1886.      * Nothing more Many people ask for fonts. They are included in the
  1887.   MetaFont-package and can get compiled by you. All you need to do is
  1888.   setting up your TeX-system in the right way which is described in the
  1889.   documentation. Please note that the PasTeX disks are compressed using
  1890.   the program Zoom. (see Endings) Sources: FTP at `ftp.uni-passau.de',
  1891.   directory `/pub/amiga/tex/PasTeX1.3' and the Fish CDs.
  1892.   
  1893.   5.5 Are there any Postscript interpreters?
  1894.   ==========================================
  1895.   
  1896.      PostScript is a programming language designed to be used to describe
  1897.   printing on pages. Apple helped make PostScript popular by selling
  1898.   printers with built in PostScript interpreters. Many programs have
  1899.   evolved to produce PostScript programs as their output, making
  1900.   PostScript the lingua franca of printing. Until recently, in order to
  1901.   print a PostScript file, you had to have a relatively expensive laser
  1902.   printer. The development that changed this was the software PostScript
  1903.   interpreter. These programs allow your computer to interpret PostScript
  1904.   programs, and produce the matrix of dots to send to your normal
  1905.   graphics printer.
  1906.   
  1907.      One of the benefits of PostScript is that it is resolution
  1908.   independent.  What this means is that it can support the highest
  1909.   resolution of your device - and that you can reasonably preview
  1910.   PostScript on a low resolution screen.
  1911.   
  1912.      There are two free PostScript interpreters for the Amiga. Post and
  1913.   Ghostscript. Post comes as an Amiga shared library along with front
  1914.   ends for previewing to the screen and printing. This structure allows
  1915.   others to write programs that can show PostScript images on screen. In
  1916.   fact, AmigaTeX uses Post's library to support incorporation of
  1917.   PostScript into documents.  Ghostscript similarly comes in two
  1918.   programs, but not as a shared library.  Ghostscript is the rendering
  1919.   engine, and Ghostview is the front end.  Sources: Aminet (directorys
  1920.   `text/print' and `text/dtp'), Fish disk 669
  1921.   
  1922.   Font Concepts
  1923.   =============
  1924.   
  1925.      The Amiga is able to use two different concepts of fonts. First of
  1926.   all   there are the bitmap fonts. These fonts are created by drawing a
  1927.   letter   pixel for pixel onto the screen. The advantage is that they
  1928.   look good at   small sizes, but are not very good for printout. Also
  1929.   they don't look   very good when you change their size. Therefore you
  1930.   have to recreate the   font for each size. Second there are the vector
  1931.   fonts. They are created by   curves which are stored as mathematical
  1932.   formula. This has the advantage   that changing the sizes does not
  1933.   effect the output. But this only applies   for larger sizes and
  1934.   print-outs. Vector fonts also use less memory.
  1935.   
  1936.   5.5.1 Amiga Font Formats
  1937.   ------------------------
  1938.   
  1939.     1. Agfa IntelliFont (suffix: .type or .lib) is the native font format
  1940.        on   the Amiga. You can use it in any application and it can be
  1941.        converted to the   standard bitmap format using the system
  1942.        utilities `IntelliFont'   (OS 3.x) or `Fountain' (OS 2.x).
  1943.   
  1944.     2. Postscript Type 1 fonts can be used within many applications, it
  1945.        can be   used in every word processor and DTP program. There are
  1946.        two versions of   the Type 1 format: Binary and ASCII (suffix:
  1947.        .pfb & .pfa). The Amiga   software uses the Binary format, but you
  1948.        can easily convert them with   TypeSmith or some PD software
  1949.        products (z.B. PFB2PFA) . In Addition to the   files mentioned
  1950.        above, there are the metrics files with the suffixes .afm   or
  1951.        .pfm. They contain information about the size (width) of the
  1952.        letters   and most programs expect this file to be in the same
  1953.        directory as the font   file.
  1954.   
  1955.     3. Postscript Type 3 fonts (suffix: .ps or nothing) are not often
  1956.        used on   the Amiga, but some applications do support this font
  1957.        format (e.g.    PageStream). There are also some download
  1958.        utilities from PD sources   available.
  1959.   
  1960.     4. Truetype fonts (suffix: .ttf) are not very common on the Amiga,
  1961.        there   is one word processor supporting this format (Wordworth
  1962.        3.0). Due to the   lower quality of the format, Amiga users tend
  1963.        to use higher quality for   their DTP, DTV and word processing...
  1964.        There are also two formats: Mac &   Windows available. The Amiga
  1965.        software is able to use the Windows format.
  1966.   
  1967.     5. DMF fonts is the privat format of PageStream (suffix: .dmf), since
  1968.         PageStream is the market leader in DTP programs on the Amiga, so
  1969.        this   format is very common!
  1970.   
  1971.     6. Bitmap fonts (suffix: .font and numbers in a directory by the name
  1972.        of   the font, sometimes .otag when converted from IntelliFont)
  1973.        were used in the   OS 1.x, but have been replaced by the  superior
  1974.        IntelliFont Format in OS   2.0. Under 2.0 or higher you still are
  1975.        able to use the bitmap fonts for   small sizes, but for printouts
  1976.        you should use the IntelliFont format or   any other vector font
  1977.        format mentioned above.
  1978.   
  1979.     7. Colour Bitmap fonts (same suffixes as Bitmap Fonts, but the
  1980.        numbers have   in addition a C, e.g. 35C) are also very common on
  1981.        the Amiga, they are   mainly used for DTV applications, like the
  1982.        Video Toaster and Scala.
  1983.   
  1984.   
  1985.   5.5.2 Frequently Requested Amiga Fonts
  1986.   --------------------------------------
  1987.   
  1988.     1. First place to look for fonts is the AMINET archive. This is the
  1989.        biggest     archive of Amiga software and there you will find also
  1990.        quite a lot of     fonts. The Aminet consists of many mirrors
  1991.        around the world. Here are some     of them:
  1992.   
  1993.          1. ftp.wustl.edu,
  1994.   
  1995.          2. ftp.luth.se,
  1996.   
  1997.          3. ftp.eunet.ch,
  1998.   
  1999.          4. ftp.uni-paderborn.de,
  2000.   
  2001.          5. ftp.doc.ic.ac.uk.
  2002.   
  2003.        Just log in as ftp and go to the directory
  2004.   
  2005.        /pub/aminet/text/font.
  2006.   
  2007.     2. Another good ftp server to look is the CICA-server:
  2008.   
  2009.          1. ftp.cica.indiana.edu
  2010.   
  2011.   
  2012.        To this server are also some mirrors around the world available.
  2013.   
  2014.     3. Also a good place to look for is the following WWW server:
  2015.   
  2016.          1. http://jasper.ora.com/Internet-Font-Archive.html
  2017.   
  2018.   
  2019.     4. Another good place is the Fresh Fonts I CD-ROM, there you will
  2020.        almost     certainly find some nice fonts. The CD is available from
  2021.   
  2022.          1. Fred Fish / Amiga Library Services (orders@amigalib.com)
  2023.   
  2024.          2. Stefan Ossowski / Schatztruhe GmbH
  2025.   
  2026.   
  2027.        The CD is for free when buying another CD from that company.
  2028.   
  2029.        You can also access the HTML pages on the CD under the following
  2030.        address:
  2031.   
  2032.          1. http://macke.gris.informatik.uni-tuebingen.de:4711/~damor/
  2033.   
  2034.   
  2035.   
  2036.   5.5.3 Commercial Font Sources
  2037.   -----------------------------
  2038.   
  2039.      Commercial fonts can be obtained from a number of different
  2040.   companies,   including the large font houses: Adobe, Font Haus, Font
  2041.   Company,   Bitstream, and Monotype. At these companies, fonts cost
  2042.   about $40 for a   single face, and must be purchased in packages.
  2043.   Adobe, Bitstream, and   Monotype also sell pre-designated type
  2044.   collections for slightly lower   prices.
  2045.   
  2046.      There are also a lot of PD reseller who have a vast quantity of
  2047.   fonts,   check out your local Amiga magazin for more information.
  2048.   
  2049.      Please consult the vendor list for a more complete list of vendors.
  2050.   
  2051.   5.5.4 Non-Latin fonts on the Amiga
  2052.   ----------------------------------
  2053.   
  2054.      Due to the really bad information policy by C= there was actually no
  2055.    information about non-latin fonts. But still it is possible to use
  2056.   them,   without difficulty. You just have to get yourself some
  2057.   additional files.    First of all you need the non-latin font files.
  2058.   There is a large selection   of them on the Fresh Fonts CD-ROM
  2059.   mentioned above. In order to use the   non-latin font files, you have
  2060.   to get yourself the appropriate keymap   file, this will remap the keys
  2061.   on the keyboard to the appropriate letters   of the foreign alphabet,
  2062.   e.g. in order to use a Russian font, you should   set the russian
  2063.   keymap file in the preferences (via PREFS/INPUT).
  2064.   
  2065.      Not only that you can write with a non-latin alphabet, you can also
  2066.   localize   your workbench. How about a Greek workbench or a Hebrew
  2067.   workbench? Have a   look into the AMINET archive (mentioned above) for
  2068.   these files!
  2069.   
  2070.      In addition to this you can easily use Hebrew & Arabic in any word
  2071.   processor   incl. writing from right-to-left! This can be easily done
  2072.   by setting the   kerning value to negative values (like this the cursor
  2073.   moves left and not   right) and moving the characters into the negativ
  2074.   part! You can get fonts   from me with this feature!
  2075.   
  2076.   5.5.5 Amiga Font Installation
  2077.   -----------------------------
  2078.   
  2079.      The installation of Postscript, DMF and Truetype fonts is described
  2080.   by the   application that use them. Please refer to the manuals of the
  2081.   software   packages.
  2082.   
  2083.      The installation of IntelliFonts is very easy. Just start
  2084.   `IntelliFont'   (OS 3.x) or `Fountain' (OS 2.x) and follow the
  2085.   guidelines from within   the program.
  2086.   
  2087.      In order to install bitmap fonts, either copy them to the logical
  2088.   device   FONTS: or assign the directory with your bitmap fonts:
  2089.   
  2090.          ASSIGN Fonts: <your_directory> ADD
  2091.   
  2092.      Right after this you can start your application and use them. When
  2093.   using   non-latin fonts, don't forget to set the appropriate keymap
  2094.   file!
  2095.   
  2096.   5.5.6 Amiga Font Utilities
  2097.   --------------------------
  2098.   
  2099.     1. IntelliFont
  2100.   
  2101.        IntelliFont is the system program by OS 3.x which lets you install
  2102.        Agfa   IntelliFonts and converts them to bitmap fonts. The program
  2103.        is located in   the drawer `SYS:System/'. For more information
  2104.        read your Workbench 3.x   manual.
  2105.   
  2106.     2. Fountain
  2107.   
  2108.        Is the preceding program to IntelliFont and comes with the now
  2109.        obsolete   OS 2.x. Please read the section about Fountain in your
  2110.        Workbench 2.x   manual.
  2111.   
  2112.     3. PFB2PFA
  2113.   
  2114.        This neat little utility lets you convert Postscript Binary files
  2115.        to   Postscript ASCII files. This is needed in order to use DOS &
  2116.        Amiga   Adobe Type 1 fonts on the Mac!
  2117.   
  2118.     4. CacheFont
  2119.   
  2120.        This great program caches the fontlist for you, in order to save a
  2121.        huge   amount of time. The program looks for all fonts available
  2122.        on the system   and creates a special cache-file on disk.
  2123.   
  2124.     5. TypeSmith
  2125.   
  2126.        This is the best font converter on the Amiga, besides this
  2127.        function it is   also a full blown font editor (see below) :-).
  2128.        The program is able to   convert between:
  2129.   
  2130.          1. Truetype
  2131.   
  2132.          2. DMF
  2133.   
  2134.          3. Adobe (Type 1 & 3)
  2135.   
  2136.          4. IntelliFont
  2137.   
  2138.          5. Bitmap (Amiga, Adobe, DMF)
  2139.   
  2140.   5.5.7 Making Outline Fonts
  2141.   --------------------------
  2142.   
  2143.      This is very, very difficult. Many people imagine that there are
  2144.   programs that will simply convert pictures into fonts for them. This is
  2145.    not the case; most fonts are painstakingly created by drawing curves
  2146.   that closely approximate the letterforms. In addition, special rules
  2147.   (which improve hinting, etc.) mandate that these curves be drawn in
  2148.   specific ways. Even designing, or merely digitizing, a simple font can
  2149.   take hundreds of hours.
  2150.   
  2151.      The easiest way of learning how to create fonts, is to have a look at
  2152.    existing fonts and try to change some letters.
  2153.   
  2154.      Given that, there are two major programs used for font design on the
  2155.    Amiga, TypeSmith 2.5 ($150) and FontDesigner ($100). These programs
  2156.   will allow you to import scanned images, and then trace them with
  2157.   drawing tools.  The programs will then generate Adobe type 1, 3,
  2158.   TrueType,   AGFA Intellifont, DMF and Bitmap fonts for either the
  2159.   Amiga, the Macintosh   or the IBM PC. They will also generate automatic
  2160.   hinting. They also open   previously constructed outline fonts,
  2161.   allowing them to be modified, or   converted into another format.
  2162.   
  2163.      As far as I know, there are no shareware programs that allows you to
  2164.    generate outline fonts.
  2165.   
  2166.      There are also two programs for creating bitmap fonts. Personal Fonts
  2167.    Maker and Calligrapher. The second one has not been updated for
  2168.   several   years, but it still is a good tool to work with. The first
  2169.   Program was   created by adding some features to a good bitmap paint
  2170.   program (Personal   Paint).
  2171.   
  2172.      There are some shareware tools to create bitmap fonts which you can
  2173.   convert to outline (vector) fonts with TypeSmith.
  2174.   
  2175.   5.5.8 Problems and Possible Solutions
  2176.   -------------------------------------
  2177.   
  2178.     1. Pagestream does not recognize your newly installed font.
  2179.   
  2180.        This happens when you have two fonts with the same ID. The
  2181.        solution is   to load such a font into a font editor and enter a
  2182.        new ID for one of the   fonts. Still it might happen that you
  2183.        choose another one, that has already   been used by!
  2184.   
  2185.     2. Your application does not find the IntelliFont.
  2186.   
  2187.        This happens when you haven't set the locigal device FONTS: to
  2188.        your drawer.    You can change this by typing the following
  2189.        command into your SHELL or add   this line to your
  2190.        `S:User-Startup' file:
  2191.   
  2192.               ASSIGN Fonts: <your_drawer> ADD
  2193.   
  2194.     3. You're using a non-latin font and the wrong characters appear when
  2195.         typing.
  2196.   
  2197.        This happens when you forget to set the appropriate keymap file.
  2198.        Enter   the Prefs directory and start the program `INPUT'. There
  2199.        you can   choose your keymap file.
  2200.   
  2201.   
  2202.   5.6 How to deal with Non-Latin texts?
  2203.   =====================================
  2204.   
  2205.      Currently I know only programs for read japanese and chinese texts.
  2206.   
  2207.      Siepieau Pang (siepiau@gbamail.mincom.oz.au)
  2208.   
  2209.   5.6.1 Japanese editors and viewers
  2210.   ----------------------------------
  2211.   
  2212.      ANS (Amiga Nihongo System) version 1.0, produced by
  2213.            SoftHouse Tecnode
  2214.            102 Coupo Izumi
  2215.            1-4-5 Houya-shi
  2216.            Izumi-machi
  2217.            Tokyo 202
  2218.            JAPAN
  2219.   
  2220.   and distributed in Japan by MIQ Japan, Ltd. has been released in Japan.
  2221.   It offers a Japanese environment for Commodore Amiga users, is
  2222.   compatible with Amiga DOS 2.0 (works fine with version 1.3, too), and
  2223.   requires at least 1MB RAM (more recommended). ANS features Japanese
  2224.   windows/menus (these replace the English menus), 12 and 24 dot-matrix
  2225.   Japanese fonts, Jinput/Joutput (both constitute a Japanese front-end
  2226.   processor), XEDmini (a simple Japanese text editor with built-in font
  2227.   editor, and can be used as a Japanese terminal), a kana-to-kanji
  2228.   conversion dictionary for XEDmini and Jinput, Jfilter (for viewing
  2229.   Japanese files while connected to an MS-DOS console), and utilities for
  2230.   Japanese code conversion and communication. Note that XEDmini uses pcj
  2231.   (Japanese version of pcd) for communications, and that one can do binary
  2232.   uploads/downloads while working on files). I hear that it is reasonably
  2233.   priced, and very easy to use.
  2234.   
  2235.      JemTeX is a preprocessor that turns a Japanese text file (i.e., a
  2236.   TeX file with Japanese text) into a standard (La/Mu)TeX file.  The
  2237.   archive (zipped) comes with the jis2mf utility along with a 24-dot
  2238.   bitmapped kanji font and a program for generating kanji tables. With
  2239.   jis2mf you can make metafont files out of the bitmapped font. JemTeX
  2240.   v2.0 will compile on an Amiga using SAS/C, or on a UNIX machine using
  2241.   gcc. This program is available at the FTP site utsun.s.u-tokyo.ac.jp
  2242.   (133.11.11.11). JemTeX v2.0 was written by Francois Jalbert
  2243.   (jalbert@iro.umontreal.ca or jalbert@cs.ubc.ca).
  2244.   
  2245.      The following are PD viewers on Aminet (text/show directory)
  2246.   
  2247.      JIStoJi by Bart Mathias automatically identifies electronic texts
  2248.   written in Old-JIS, New-JIS, Shift-JIS, or EUC-JIS (as well as ASCII)
  2249.   and displays them on screen, or prints them to dot-matrix printers.
  2250.   Will run on Kickstart 1.3 and up.
  2251.   
  2252.      jmore (Japanese more) is basically a more clone that also reads
  2253.   ns-kanji (Shift-JIS) text. It opens its own hires interlaced screen and
  2254.   requires a font handler called jFontSys to be running. The archive
  2255.   includes jmore, jFontsys and the wlook/16 bitmap font.  However, you
  2256.   will also need the kanji fonts. (Aminet, `text/font/amknj16.lzh') All
  2257.   the documentation comes as Japanese text, so you need a JIS viewer to
  2258.   read the installation instructions. For your convenience, I have
  2259.   summarized the installation procedure below:
  2260.     1. Place the `wlook/16' font in your `FONTS:' directory
  2261.   
  2262.     2. Assign `JFONTS:' to where you unarchive the amknj16 fonts. This
  2263.        need not be the same as your `FONTS:' directory
  2264.   
  2265.     3. Place the file `jFont-startup' in the `S:' directory
  2266.   
  2267.     4. Insert the following line into your `startup-sequence':
  2268.                 run >nil: jFontSys
  2269.   
  2270.     5. To use execute the following command
  2271.                 jmore <japanese.txt>
  2272.   
  2273.   JISconvert by Dwight Hubbard is a japanese text conversion utility for
  2274.   Amiga computers. It supports conversion between EUC, New JIS, Old JIS,
  2275.   NEC JIS and Shift JIS. It also has options to convert half-size
  2276.   katakana to full size and repair files with ESC characters stripped. No
  2277.   installation required. Requires AmigaDOS 2.04 or newer.
  2278.   
  2279.   5.6.2 Chinese text viewers
  2280.   --------------------------
  2281.   
  2282.      HZview (by Ji Ma) shows 8-bit Guo Biao encoded chinese text
  2283.   documents. Requires AmigaDOS v2.1 and above, and cclib.16 bitmap
  2284.   library (included).
  2285.   
  2286.      *NOTE*: This is a pre-release version. What the doc file does not
  2287.   tell you is that you need to do the following:
  2288.     1. Open a default public hires interlaced 1 or 2-bit deep screen
  2289.   
  2290.     2. The size of the file to be read is restricted to about 30K (on my
  2291.        machine, A1200, WB3.0)
  2292.   
  2293.     3. An FPU is required if you want to scroll the text without crashing
  2294.   
  2295.     4. The cclib.16 should be in the same directory as the file to be read
  2296.   
  2297.   Other small bugs still exist which may crash the machine.
  2298.   
  2299.   6 Emulators
  2300.   ***********
  2301.   
  2302.      What? The Amiga isn't good enough? You really want it to be another
  2303.   machine?  Well, look here...
  2304.   
  2305.   6.1 Can I run Unix on my Amiga?
  2306.   ===============================
  2307.   
  2308.      Actually there are three Unix versions on the Amiga. All of them
  2309.   need at least 68030 (see 68EC0xx), probably a 68040 in the near future
  2310.   and seem to have problems with many hard-drive-controllers. You should
  2311.   have a good look into the documentation before installing it. Unix
  2312.   needs much resources, say at least 10Mb RAM and a 150Mb Unix-partition
  2313.   on the hard-drive.
  2314.   
  2315.     1. Commodore offered a System V Unix in the past. It contained TCP/IP,
  2316.        X11 and other software and seemed to make a good job, but it was
  2317.        expensive and after all Commodore has dropped developing it.
  2318.        Commodore-Unix needs a streamer because it is distributed on tapes.
  2319.   
  2320.     2. A Linux port is prepared. But actually there is not very much than
  2321.        the kernel. Specialists might like to use it, but it cannot be
  2322.        recommended for now. Linux is freely distributable. Sources:
  2323.        `ftp.tsx-11.mit.edu' or `ftp.uni-erlangen.de', both directory
  2324.        `/pub/Linux/MIRROR.tsx-11/680x0'.  Or `ftp.leo.org', directory
  2325.        `/pub/comp/os/linux/680x0'.
  2326.   
  2327.     3. NetBSD is freely distributable too. Like Linux it isn't ready for
  2328.        now, but it seems to make big steps. Most GNU software is said to
  2329.        run, especially emacs and gcc. I think it's worth to have a look
  2330.        on it. Sources: `ftp.uni-erlangen.de', Directory
  2331.        `/pub/amiga/unix/NetBSD-regensburg'.  See Fish CD.
  2332.   
  2333.   
  2334.   6.2 Is it possible to use the Amiga as X11 terminal?
  2335.   ====================================================
  2336.   
  2337.      Yes, it is. There are two different packages available:
  2338.   
  2339.      GfxBase offers a commercial version which is said to be excellent,
  2340.   but expensive. The distribution includes different window managers
  2341.   andclients.  A demo version is on Aminet.
  2342.   (`gfx/x11/GfxBase-X11-Demo.lha')
  2343.   
  2344.      DaggeX is freely distributable and probably not finished yet. (It
  2345.   calls itself version 0.91.) Source: Aminet, `gfx/x11/DaggeX-0.91.lha'
  2346.   and `gfx/x11/twm_930531.lha'.
  2347.   
  2348.   6.3 Is there a way to start MS-Dos programs?
  2349.   ============================================
  2350.   
  2351.      PC-Task is a software only IBM-PC emulator for all Amiga computers.
  2352.   The current release is 2.03 which includes emulation of 8086 with
  2353.   MDA/CGA/EGA/VGA, serial and parallel ports, mouse, two harddrives and
  2354.   two floppies.  A demonstration version can be obtained from aminet
  2355.   sites: `/pub/aminet/misc/emu/PCTaskDemo203a.lzh'.  Chris Hames
  2356.   (bytey@melbourne.dialix.oz.au) (pctask@quasar.dialix.au)
  2357.   
  2358.   6.4 How to mount MsDos-formatted Syquests on Amiga
  2359.   ==================================================
  2360.   
  2361.      To mount a MSDos-formatted Syquest on Amiga, you need with an (DOSen)
  2362.   Adaptec-Controller the following Mount-entry in `DEVS:Mountlist':
  2363.   
  2364.        D:      Filesystem      = L:CrossDOSFileSystem
  2365.                Device          = scsi.device
  2366.                Unit            = 2
  2367.                Flags           = 0
  2368.                Surfaces        = 1
  2369.                BlocksPerTrack  = 1
  2370.                Reserved        = 1
  2371.                Interleave      = 0
  2372.                LowCyl          = 32
  2373.                HighCyl         = 169948
  2374.                Buffers         = 128
  2375.                BufMemType      = 0
  2376.                Stacksize       = 4000
  2377.                Priority        = 5
  2378.                GlobVec         = -1
  2379.                DosType         = 0x4D534400
  2380.        #
  2381.   
  2382.      For different (DOSen) controllers this entry should work, too, but
  2383.   maybe you have to adjust it. When inserted, the Syquest-88MB medium is
  2384.   (in this case) automatically mounted (as drive D:) and can be used with
  2385.   help of the CrossDOS-Filesystem as usual.
  2386.   
  2387.      Gerhard Schneider (fido@incubus.sub.org)
  2388.   
  2389.   7 Miscellaneous
  2390.   ***************
  2391.   
  2392.      This last chapter contains some questions that don't fit in the
  2393.   chapters above.
  2394.   
  2395.   7.1 Is there any unix version of LhA?
  2396.   =====================================
  2397.   
  2398.      See Endings.
  2399.   
  2400.   7.2 What are files ending with ...?
  2401.   ===================================
  2402.   
  2403.      Most endings on FTP sites or Fish disks tell you that the file is
  2404.   compressed and/or is an archive containing more than one file. Some
  2405.   programs even archive whole disks. Frequently found endings and
  2406.   programs to handle the related files are:
  2407.   *.sfx*
  2408.        Compressed archives which are included in an executable program:
  2409.        Just call the program and it will extract itself (sfx = self
  2410.        extract)
  2411.   
  2412.   *.lha*
  2413.   *.lzh*
  2414.        Compressed archives; recommended: LhA (`util/arc/LhA_e138.run' on
  2415.        Aminet  or Fish disk 715) or Lx (`util/arc/lx100.lha' on Aminet),
  2416.        Unix version available (`misc/unix/lha-1.00.tar.Z')
  2417.   
  2418.   *.dms*
  2419.        Disks compressed using DMS (`util/arc/dms111.sfx' on Aminet or
  2420.        Fish disk 406)
  2421.   
  2422.   *.zom*
  2423.        Disks compressed using Zoom (`util/arc/Zoom_5.4.lha' on Aminet,
  2424.        Fish disk 682); an older version which you probably need for
  2425.        uncompressing PasTeX is found on Fish disk 459.
  2426.   
  2427.   *.zoo*
  2428.        Compressed archive; recommended: Zoo (`util/arc/zpp2-10.lzh' on
  2429.        Aminet or Fish disk 527)
  2430.   
  2431.   *.Z*
  2432.   *.z*
  2433.   *.gz*
  2434.        Compressed files; recommended gzip (`util/pack/gzip124x.lha' on
  2435.        Aminet), note that this are Unix files in most cases
  2436.   
  2437.   *.tar*
  2438.        Acrhive; recommended: tar (`util/arc/tar.lha' or
  2439.        `util/arc/gtar10.lha' on Aminet or Fish disk 445), note that tar is
  2440.        a Unix archiver and you often find soething like `.tar.Z'.
  2441.   
  2442.   *.arj*
  2443.        Compressed archive; recommended unarj (`util/arc/unarj-0.5.lha' on
  2444.        Aminet)
  2445.   
  2446.   *.zip*
  2447.        Compressed archive; recommended UnZip (`util/arc/unzip-5.1.lha' on
  2448.        Aminet), note that this are MS-Dos archives in most cases
  2449.   
  2450.   7.3 Is there a Stacker-like utility to pack my hard drive?
  2451.   ==========================================================
  2452.   
  2453.      XFH does a good job. It operates as a handler and uses the
  2454.   XPK-libraries, so you have different compression modes (RAKE is a good
  2455.   choice) and possibly even more in the future. The only disadvantage is,
  2456.   that the size of a file is limited by RAM: Don't use it with less than
  2457.   2MB of RAM.
  2458.   
  2459.      XPKDisk by Olaf 'Rhialto' Seibert is another stacker program that
  2460.   takes advantage of the variety of XPK libraries available. Unlike other
  2461.   harddisk compressors it does not compress the files, but creates a
  2462.   pseudo partition and stores the whole tracks as compressed files on
  2463.   your harddisk. Its major advantage is that it does not limit the
  2464.   maximum file size, because it works similar to trackdisk.device and
  2465.   therefore does not need too much temporary storage.
  2466.   
  2467.      But be careful if you want to use ReOrg on a comprimized partition:
  2468.   ReOrg should be set to leave enough memory for the xpkdisk buffers.
  2469.   And because of ReOrgs buffering, you can use few buffers for xpkdisk
  2470.   (perhaps as few as 2 or 3). Don't use ReOrg if you don't know the
  2471.   memory needs of XFH or XPKDisk.
  2472.   
  2473.      Another possibility is EPU. It's shareware and should offer the same
  2474.   as XFH, but without limiting the file size.
  2475.   
  2476.      Sources: Aminet, directory `util/pack', Fish disks 754 (XFH) and 858
  2477.   (EPU)
  2478.   
  2479.   7.4 Where do I get Fish disk xxx?
  2480.   =================================
  2481.   
  2482.      Those FTP servers have that much space (or a CD-Rom) to have all
  2483.   fish disks available online:
  2484.        ftp.isca.uiowa.edu      (USA, directory `/amiga/fx/fxxx')
  2485.        ftp.hawaii.edu          (USA, directory `/pub/amiga/fish')
  2486.        ftp.funet.fi            (Finland, directory `/pub/amiga/fish')
  2487.   
  2488.   Note that the CD-Rom's are not always mounted. See FTP.
  2489.   
  2490.      Another possibility would be to ask your local dealer. :-)
  2491.   
  2492.   7.5 What is MUI and where do I find it?
  2493.   =======================================
  2494.   
  2495.      MUI is a set of shared libraries which are used to build a
  2496.   comfortable GUI (`Graphical user interface'). The general idea of MUI
  2497.   is that the programmer determines only the logical structure of the GUI
  2498.   and the look (Font, Size, Windows on Workbench, Public Screen, own
  2499.   Screen, ...) is determined by the user only. From the programmers point
  2500.   of view using MUI is simpler than `gadtools.library' but much more
  2501.   powerful. On the other hand MUI interfaces are slower than
  2502.   GadTools-Interfaces, especially on old 68000 machines.
  2503.   
  2504.      MUI is found in two archives, one for developers only and one for
  2505.   users. Source: Aminet, `dev/misc'.
  2506.   
  2507.   8 Where and how do I get software and other informations?
  2508.   *********************************************************
  2509.   
  2510.      Three questions arise in this context: Which programs can be found,
  2511.   where are they and how to get them and transfer them home?
  2512.   
  2513.   8.1 Files and databases on freely distributable software
  2514.   ========================================================
  2515.   
  2516.      Of course you need to know where you find things. Many good choices
  2517.   are listed in this paper, as I hope. Other sources are:
  2518.   
  2519.   *AmigaSciSchool*
  2520.        is a list of software and where you find it in Ascii format. It is
  2521.        posted monthly to the newsgroups `comp.sys.amiga.applications',
  2522.        `comp.unix.amiga', and `news.answers'. Additionally you will find
  2523.        it on Aminet sites (`text/doc/AmigaSciSchool-4.01'). It handles
  2524.        everything listed here and many more, for example GNU software,
  2525.        libraries (linked and shared), shells, Unix commands, educational
  2526.        and scientific software and much more.
  2527.   
  2528.   *FishCon*
  2529.        are lists of the Fish disk contents. (`fish/doc/fishcon-???.lzh' on
  2530.        Aminet)
  2531.   
  2532.   *FishXref*
  2533.        is a cross reference list of the Fish contents.
  2534.        (`fish/doc/fishxref-???.lzh' on Aminet) FishXref and Fishcon are in
  2535.        Ascii format.
  2536.   
  2537.   *KingFisher*
  2538.        A Fish disk database, (`fish/doc/Kingfisher1_30.lha', which is the
  2539.        program and `fish/doc/KFData850.lha' ,which contains the data, on
  2540.        Aminet or Fish disk 863) allows search by name and context. See
  2541.        Fish.
  2542.   
  2543.   8.2 A collection of tests
  2544.   =========================
  2545.   
  2546.      `Comp.sys.amiga.reviews' is a moderated newsgroup where tests of
  2547.   soft- and hardware, books and anything else relevant to the Amiga are
  2548.   posted. Its always a good idea to check this newsgroup for a review, if
  2549.   you are interested in something special. Of course you always find only
  2550.   the latest reviews, but the older postings are available per FTP from
  2551.   `math.uh.edu', Directory `/pub/Amiga/comp.sys.amiga.reviews' or on the
  2552.   Fish CDs.
  2553.   
  2554.   8.3 Getting files from a FTP server
  2555.   ===================================
  2556.   
  2557.      Things are easy for those who have access to the Internet and a
  2558.   program called FTP (File Transfer Program). Nearly all Unix computers
  2559.   have it, but not all of them allow the use of FTP.
  2560.   
  2561.      FTP allows you to gain access to some other machines and store and/or
  2562.   retrieve files. Normally one needs an acoount on the remote machine to
  2563.   use it, bat a number of machines have a setup that allows everybody to
  2564.   log in as the user `ftp' or `anonymous', so anybody may get files from
  2565.   them. The most important of this servers are the Aminet servers, which
  2566.   mirror each other and hence should have the same files. They are the
  2567.   best choice if you are looking for Amiga software. Aminet hosts are
  2568.        USA (MO)     ftp.wustl.edu           128.252.135.4
  2569.        USA (CA)     ftp.cdrom.com           192.153.46.2
  2570.        USA (TX)     ftp.etsu.edu            192.43.199.20
  2571.        Scandinavia  ftp.luth.se             130.240.18.2
  2572.        Germany      ftp.uni-kl.de           131.246.9.95
  2573.        Germany      ftp.uni-erlangen.de     131.188.1.43
  2574.        Germany      ftp.cs.tu-berlin.de     130.149.17.7
  2575.        Germany      ftp.uni-paderborn.de    131.234.2.32
  2576.        Germany      ftp.uni-oldenburg.de    134.106.40.9
  2577.        Germany      ftp.coli.uni-sb.de      134.96.68.11
  2578.        Switzerland  ftp.eunet.ch            146.228.10.16
  2579.        Switzerland  litamiga.epfl.ch        128.178.151.32
  2580.        UK           ftp.doc.ic.ac.uk        146.169.2.1
  2581.      All these mirrors have a directory `/pub/aminet', where you will find
  2582.   much stuff. Please use a mirror close to you! Some other important hosts
  2583.   are
  2584.        ftp.funet.fi             (Finland)
  2585.        ftp.isca.uiowa.edu       (USA)
  2586.        ftp.hawaii.edu           (USA)
  2587.        ftp.cso.uiuc.edu         (USA)
  2588.        ftp.dfv.rwth-aachen.de   (Germany)
  2589.      Note that grind, aachen and erlangen have the full collection of Fish
  2590.   disks available! See Fish disk xxx.
  2591.   
  2592.      To connect to a special host (ftp.uni-erlangen.de for example), you
  2593.   should type
  2594.        ftp ftp.uni-erlangen.de
  2595.   
  2596.   The host answers by requesting your login. You should type
  2597.        ftp
  2598.   
  2599.   No you are asked for a password. Please type your Email address here, if
  2600.   you have one. If not, use the password ftp.
  2601.   
  2602.      Now you're inside the host. There is a number of commands you may
  2603.   execute here. The most important are:
  2604.   *?*
  2605.        Prints the help text of the FTP command. Additionally you may type
  2606.        *? command* to get information on a special command.
  2607.   
  2608.   *bin*
  2609.        Tells the FTP program that you whish to transfer binary files. It
  2610.        is always a good choice to type bin as the very first command!
  2611.        Files you load without the bin command can be corrupt.
  2612.   
  2613.   *get <file>*
  2614.        Loads the given file from the host. On most Unix machines you can
  2615.        type something like `get file.txt -' or `get file.txt |more' to
  2616.        show a text on the screen. Note that there *must not* be any blank
  2617.        between the | and the word more!
  2618.   
  2619.   *mget <pat>*
  2620.        Loads the given files. pat may contain Unix style like wildcards.
  2621.   
  2622.   *put <file>*
  2623.   *mput <pat>*
  2624.        Like get and mget, but transfer files from you to the remote host.
  2625.        This is in most cases not allowed, except for a special directory
  2626.        called `incoming'. You can place files here which you want to make
  2627.        public.
  2628.   
  2629.   *cd <dir>*
  2630.        Like the usual cd command. The commands get, mget, put, mput, dir
  2631.        and ls refer to the current working directory.
  2632.   
  2633.   *dir [<dir>]*
  2634.   *ls [<dir>]*
  2635.        Like `list' and `dir' on the Amiga. Note that the FTP-dir
  2636.        corresponds to the Amiga-list!
  2637.   
  2638.   *bye*
  2639.        Leaves the FTP program.
  2640.   
  2641.      When you have used FTP for the first times you will notice, that you
  2642.   always begin with executing the same steps:
  2643.     1. Type the login (ftp in most cases)
  2644.   
  2645.     2. Type the password (your mail address in most cases)
  2646.   
  2647.     3. Enter the bin command
  2648.   
  2649.     4. Change the current working directory (`/pub/aminet' for example)
  2650.           This may get executed automatically. What you need is a file
  2651.   called `.netrc' in your home directory. Note that it needs to be
  2652.   protected against others! The FTP program doesn't use it, if it can be
  2653.   read by anything else than you. (Protection is set using the command
  2654.   `chmod go-rwx .netrc'.) The .netrc file contains some entries for your
  2655.   most favourite FTP sites, each separated by empy lines. A typicel entry
  2656.   may look like this:
  2657.        machine ftp.uni-erlangen.de
  2658.        login ftp
  2659.        password <your mail address> or <ftp>
  2660.        macdef init
  2661.            bin
  2662.            cd pub/aminet
  2663.      Note that on some machines it is possible to use the machine name
  2664.   `default' which meets all machines not listed in .netrc.
  2665.   
  2666.   8.4 Getting files from a Mail server
  2667.   ====================================
  2668.   
  2669.      Another way to get files is to use a mail server. This assumes that
  2670.   you can send mail to Internet addresses and get mail from Internet
  2671.   hosts. It works by sending a mail to the server specifying some
  2672.   commands, for example send commands for the files you want. Important
  2673.   mail servers are
  2674.        ftpmail@decwrl.dec.com
  2675.        mailserver@nic.funet.fi
  2676.        mailserver@leo.org
  2677.        mrcserv@janus.mtroyal.ab.ca
  2678.        mail-server@ftp.cs.tu-berlin.de
  2679.        mail-server@rtfm.mit.edu
  2680.   
  2681.   The most important commands are:
  2682.   *Help*
  2683.        Tells the server that you wish to get an Ascii file containing
  2684.        detailed explanation how to use the server.
  2685.   
  2686.   *Limit <number>*
  2687.        Specifys that you wish to get not more than <number> Kbytes per
  2688.        mail.  Larger files get splitted into small pieces of at most
  2689.        <number> Kbytes which are sent as separate mails each. Note that
  2690.        the mails may get larger because of overhead.
  2691.   
  2692.   *Cwd <dir>*
  2693.        Sets the current working directory to <dir>. This directory is
  2694.        used by the commands send and dir.
  2695.   
  2696.   *Index*
  2697.        will return a list of files and/or directories that the server
  2698.        offers. Note that this may be *very* large!
  2699.   
  2700.   *Index <item>*
  2701.        returns a list of files containing <item> in their names.
  2702.   
  2703.   *Dir [<dir>]*
  2704.        returns a list of the files and directories in the given directory.
  2705.   
  2706.   *Send <file1> <file2> ... <fileN>*
  2707.        Tells the server to send the given files to you.
  2708.   
  2709.   *Begin*
  2710.        Tells the server to ignore all lines above this command.
  2711.   
  2712.   *End*
  2713.        Like Begin, but specifies to ignore the lines below. (A signature
  2714.        for example!) A typical session would be to send the following
  2715.   mail to the mail server:
  2716.        BEGIN
  2717.        CD /pub/aminet/util/arc
  2718.        SEND LhA_e138.run
  2719.        END
  2720.   
  2721.   8.5 Getting files from a mailbox
  2722.   ================================
  2723.   
  2724.      You also can get files from one of the many BBS's (`Bulletin Board
  2725.   System').  Most of these are driven by private users, so there is
  2726.   nearly everywhere a mailbox which doesn't cause a too expensive
  2727.   telephone bill.
  2728.   
  2729.      I want to publish a list of all Amiga mailboxes here.  So please
  2730.   send to me a list of all mailboxes which are related to the Amiga - in
  2731.   any way.  I need all telephone numbers of the boxes and their name.
  2732.   Tell me the nation where the box resides and - if possible - some more
  2733.   info (Does the box have Aminet or the Fish PD or FRAS?  Is the box
  2734.   especially for Amiga users?)
  2735.   
  2736.      Thanks, Ignaz Kellerer
  2737.   
  2738.   8.6 The Fish PD series
  2739.   ======================
  2740.   
  2741.      A very good source is the Fish PD series. One distinguishes between
  2742.   the floppy disks and the CD-Roms.
  2743.   
  2744.   8.6.1 The Amiga Library disks
  2745.   -----------------------------
  2746.   
  2747.      Fred Fish has started in the middle eighties to collect freely
  2748.   distributable software on floppy disks. There are 1000 disks and very
  2749.   much good stuff on it.  Most Amiga dealers sell them and most magazines
  2750.   contain addresses of people mailing them to you for about 3$ per disk
  2751.   or less.  Fred Fish has terminated offering software on floppy disks.
  2752.   Instead, there is a dealer who offers the new software from the CD-Roms
  2753.   on floppy disks.
  2754.   
  2755.      There are some things which can be found on the Fish disks, but not
  2756.   on Aminet.  However, you can get them with FTP. See Fish disk xxx.
  2757.   
  2758.   8.6.2 The Fresh Fish CD-Roms
  2759.   ----------------------------
  2760.   
  2761.      Fred Fish is going on to offer freely distributable software. But
  2762.   now he collects it on CD-Rom's. He releases two different kinds of CD's:
  2763.     1. Monthly released disks are divided into roughly three sections:
  2764.          1. New material, which includes the material from the new
  2765.             unreleased floppy disks as well as material which does not
  2766.             appear in the floppy distribution, about 84Mb on the first
  2767.             disk.
  2768.   
  2769.          2. Useful utilities that can be used directly off the CD-ROM if
  2770.             desired, thus freeing up the corresponding amount of hard
  2771.             disk space (GNU Emacs, Gnu C, GNU C++, Amiga E, PasTeX,
  2772.             AmigaGuide, Installer, 2.0 and 3.0-Includes, different
  2773.             archivers, tape drivers, the AmiCDROM filesystem and many
  2774.             other GNU and BSD tools, ...), about 150Mb on the first disk.
  2775.   
  2776.          3. Older material from previous released floppy disks or
  2777.             CD-ROM's, about 404 Mb on the first disk. (Fish disk 600-910)
  2778.   
  2779.     2. Disks containing the latest software as well as recent software in
  2780.        packed format only. (These are intended to be used for example in
  2781.        BBS's.)
  2782.           I recommend especially the first kind of Fish CD's. They cost
  2783.   about 20$ plus 3$ for shipping (5$ outside USA/Canada/Mexico) and are
  2784.   available from
  2785.   
  2786.        Amiga Library Services
  2787.        610 N. Alma School Road, Suite 18
  2788.        Chandler, AZ 85224-3687
  2789.        U.S.A.
  2790.        
  2791.        Phone/FAX: (602) 917-0917
  2792.   
  2793.   8.7 How do I Read and write MS-Dos disks?
  2794.   =========================================
  2795.   
  2796.      No problem for owners of Workbench 2.1 or higher: The program
  2797.   CrossDos is part of the Workbench. All you have to do is mounting the
  2798.   device `pc0:' by putting it into the drawer `Devs:DOSDrivers' or by
  2799.   double-clicking the icon in `Sys:Storage/DOSDrivers'. Ms-Dos disks in
  2800.   drive `df0:' can now be handled in the usual manner replacing the word
  2801.   `df0:' by `pc0:'. For example the directory can be shown with the
  2802.   command dir pc0:.
  2803.   
  2804.      People still running Workbench 2.0 or lower need a program called
  2805.   `MSH'.  You will find this on the Aminet (directory misc/emu) and on
  2806.   Fish disk 382.  See Sources. After editing the file `devs:MountList' as
  2807.   described in the documentation you have to say Mount msh: in the CLI
  2808.   and can now do the same as above replacing the word `pc0:' with `msh:'.
  2809.   
  2810.   8.8 How do I split large files?
  2811.   ===============================
  2812.   
  2813.      There are some archives which are too large to fit on one disk. To
  2814.   transfer them on disks you need to split them into smaller pieces and
  2815.   transfer each part on a separate disk. I recommend Martin Schlodder's
  2816.   `Splitter'.  (Aminet, `util/misc/splitter_121.lha'. The archive
  2817.   contains binaries for MS-DOS and should be compilable without problems
  2818.   on any Unix system.
  2819.   
  2820.   8.9 Discussing things
  2821.   =====================
  2822.   
  2823.      A mailing list is a server that allows to discuss special things via
  2824.   Email. The server holds a list of people that are interested in the
  2825.   respective topic. For example, the gcc mailing list will discuss bugs,
  2826.   new features and other problems of gcc. (see Compilers) If a mail is
  2827.   sent to the server from someone he will forward this mail to all the
  2828.   other people on the list.
  2829.   
  2830.      You will be added to the list by sending a mail to the server which
  2831.   will usually contain the word `Subscribe' or something similar. Once you
  2832.   are no more interested in the mailing list you can unsubscribe.
  2833.   
  2834.      Unforunately the servers have a different syntax of subscribing and
  2835.   unsubscribing. The best way to find how to subscribe is to send a mail
  2836.   with the word `Help' to the server. He will reply a mail which should
  2837.   explain how to handle this special server.
  2838.   
  2839.      Some mailing lists are:
  2840.        Topic           Server
  2841.        
  2842.        Amok            listserv@amokle.stgt.sub.org
  2843.        Dice            dice-request@castrov.cuc.ab.ca         or
  2844.                        dice-request@hactar.hanse.de (Germany)
  2845.        gcc             listserv@lists.funet.fi
  2846.        Lisp            amigalisp@contessa.phone.net
  2847.        Mui             mui-request@taloa.unice.fr
  2848.        Oberon-A        oberon-a-request@wossname.apana.org.au
  2849.   
  2850.   8.10 Other FAQ's
  2851.   ================
  2852.   
  2853.      This is not the only FAQ, of course. Lots of FAQ's are available
  2854.   either by being posted to newsgroups or by access via FTP.
  2855.   
  2856.   *Amiga related books FAQ*
  2857.        This is a list of books for the Amiga, including short discussions,
  2858.        prices and sources. Newsgroups: comp.sys.amiga.misc,
  2859.        comp.sys.amiga.introduction, comp.sys.amiga.programmer (monthly)
  2860.        Ftp: rtfm.mit.edu, pub/usenet/comp.sys.amiga.misc.  Maintainer:
  2861.        Marc Atkins, atkin@cs.umass.edu
  2862.   
  2863.   *AmiTCP/IP FAQ*
  2864.        This is for users of AmiTCP/IP, a set of programs which allows to
  2865.        include an Amiga into a TCP/IP network. (Most well known nets,
  2866.        Internet for example use TCP/IP.) Newsgroups: comp.sys.amiga.misc,
  2867.        comp.sys.amiga.datacomm, comp.sys.amiga.networking (biweekly) Ftp:
  2868.        rtfm.mit.edu, pub/usenet/comp.sys.amiga.networking Maintainer:
  2869.        Neil J. McRae (atcpfaq@domino.demon.co.uk)
  2870.   
  2871.   *Amiga Networking FAQ*
  2872.        Unlike the AmiTCP/IP FAQ this one wants to cover all aspects of
  2873.        networking, including TCP/IP and Envoy.  Newsgroups:
  2874.        comp.sys.amiga.datacomm, comp.sys.amiga.hardware Ftp:
  2875.        rtfm.mit.edu, pub/usenet/comp.sys.amiga.networking Maintainer:
  2876.        Richard Norman (norman@afas.msfc.nasa.gov)
  2877.   
  2878.   *Point Manager FAQ*
  2879.        Networking seems to be quite a problem: This FAQ os for Point
  2880.        Manager, a FidoNet-client (so-called points).  Newsgroups:
  2881.        comp.sys.amiga.datacomm Ftp: rtfm.mit.edu,
  2882.        pub/usenet/comp.sys.amiga.datacomm Maintainer: Eric Krieger
  2883.        (pm_faq@quasar.hacktic.nl)
  2884.   
  2885.   *All about FTP*
  2886.        Explains the usage of the file transfer program FTP. See FTP.
  2887.        Newsgroups: comp.sys.amiga.misc (monthly) Ftp: Aminet, info/start
  2888.        Betreuer: Urban Dominik Mueller (umueller@amiga.icu.net.ch)
  2889.   
  2890.   The Amiga-FAQ archive
  2891.   *********************
  2892.   
  2893.      The Amiga-FAQ is available in different formats: Ascii format (which
  2894.   is posted to the nets) AmigaGuide format (which is the adequate format
  2895.   on the Amiga) and in dvi format (to be printed). Additionally there is
  2896.   some stuff, that might be useful or interesting, but could not be
  2897.   included into the Amiga-FAQ:
  2898.        txt/amiga.history       On the Amiga's history
  2899.        txt/story.txt           The Commodore story (or: the Tramiel
  2900.                                story ;-)
  2901.        txt/amiga.newsgroups    Overview on comp.sys.amiga.*
  2902.        txt/amiga.sites         List of FTP sites
  2903.        txt/AmigaOverview.tex   A short overview on the Amiga-Soft- and
  2904.                                Hardware
  2905.        txt/Hardware.tips       For those people who can't live without solder
  2906.        src/JWSplit.c           The source of a file splitter
  2907.        src/JWJoin.c            The opponent to JWSplit
  2908.        src/addtoc.c            Utility to add a toc to texinfo-created docs
  2909.                                (this document uses it)
  2910.        programmers/*           Some stuff for programmers: pragmas, vararg
  2911.                                versions of some tag functions and some
  2912.                                amiga.lib functions (HookEntry, DoMethod)
  2913.   
  2914.      I decided to collect these in the Amiga-FAQ archive. It is called
  2915.   AmigaFAQ.lha and can be found on Aminet, directory `docs/misc'.
  2916.   
  2917.   Contributions
  2918.   *************
  2919.   
  2920.      This FAQ can neither get useful nor hit further development without
  2921.   your help. Suggestions, contributions, new answers, critics, anything
  2922.   is rather welcome.
  2923.   
  2924.      Please note, that very major subjects are absolutely missing yet:
  2925.   Nothing about sound, nothing on graphic cards, no Animation. These are
  2926.   some of the Amiga's best points! But I don't know them ... :-(
  2927.   
  2928.      So grab your keyboard (Your pencil? Well, if there's no other way...)
  2929.   and send mail to:
  2930.   
  2931.              Ignaz Kellerer
  2932.              Georg-Habel-Str. 11
  2933.        81241 Munich (Germany)
  2934.              Tel. (+49) 089 / 885147
  2935.        
  2936.              Internet: kellerer@informatik.tu-muenchen.de
  2937.   
  2938.   Credits
  2939.   *******
  2940.   
  2941.      My thanks go to:
  2942.   *Reinhard Spisser and Sebastiano Vigna*
  2943.        for the Amiga version of texinfo. This is written with it.
  2944.   
  2945.   *The Free Software Foundation*
  2946.        for the original version of texinfo and many other excellent
  2947.        programs.
  2948.   
  2949.   *Dylan McNamee*
  2950.        for contributing the sections on Editors, Word Processors, DTP and
  2951.        Postscript and some wording fixes.
  2952.   
  2953.   *Joseph Luk*
  2954.        for help in the section on chunky/planar, double buffering and
  2955.        PAL/NTSC
  2956.   
  2957.   *Urban Dominik Mueller*
  2958.        for the FAQ on FTP and Mail-servers.
  2959.   
  2960.   *Lars Hecking (lhecking@nmrc.ucc.ie)*
  2961.   *Philippe Brand (phb@colombo.telesys-innov.fr)*
  2962.        for the complete gcc part
  2963.   
  2964.   *Jochen Wiedmann (zrawi01@decap2.zdv.uni-tuebingen.de)*
  2965.        for the composition and posting of the Amiga FAQ until July 1994.
  2966.   
  2967.   Index
  2968.   *****
  2969.   
  2970.   
  2971.   
  2972.    . (replacement)                        Dot-Replacement
  2973.    .arj                                   Endings
  2974.    .dms                                   Endings
  2975.    .gz                                    Endings
  2976.    .lha                                   Endings
  2977.    .lzh                                   Endings
  2978.    .netrc                                 FTP
  2979.    .sfx                                   Endings
  2980.    .tar                                   Endings
  2981.    .z                                     Endings
  2982.    .Z                                     Endings
  2983.    .zip                                   Endings
  2984.    .zom                                   Endings
  2985.    .zoo                                   Endings
  2986.    68EC020                                68EC0xx
  2987.    68EC030                                68EC0xx
  2988.    68LC040                                68EC0xx
  2989.    A1200 (HD)                             A1200-HD
  2990.    AmiBooksFAQ                            FAQs
  2991.    Amiga Library disks                    Fish floppy disks
  2992.    Amiga networking FAQ                   FAQs
  2993.    Amiga-FAQ archive                      Amiga-FAQ Archive
  2994.    AmigaBasic                             AmigaBasic
  2995.    AmigaSciSchool                         Infos
  2996.    AmiTCP/IP FAQ                          FAQs
  2997.    Anonymous                              FTP
  2998.    ANS                                    Japanese
  2999.    Assemblers                             Compilers
  3000.    AutoDocs                               Includes
  3001.    BBS                                    Mailbox
  3002.    C                                      Compilers
  3003.    C++                                    Compilers
  3004.    C-program (gcc)                        Compiling
  3005.    Catalog description                    Localizing
  3006.    Catalog translation                    Localizing
  3007.    Catalogs                               Localizing
  3008.    CatComp                                Localizing
  3009.    CATS                                   CATS
  3010.    Chunky displays                        Chunky vs. Planar
  3011.    Commodore, Frankfurt                   Developer
  3012.    Commodore, West Chester                CATS
  3013.    comp.sys.amiga.reviews                 Reviews
  3014.    Compilers                              Compilers
  3015.    Console window                         WindowPtr
  3016.    Contributions                          Contributions
  3017.    Credits                                Credits
  3018.    CrossDos                               MS-Dos disks
  3019.    Current directory                      Dot-Replacement
  3020.    DaggeX                                 X11
  3021.    Desktop Publishing                     DTP
  3022.    Developer                              Developer
  3023.    DoMethod                               Missing functions
  3024.    DoSuperMethod                          Missing functions
  3025.    Doublebuffering                        Doublebuffering
  3026.    DTP                                    DTP
  3027.    Editors                                Editors
  3028.    Emulators                              Emulators
  3029.    endings                                Endings
  3030.    Enforcer                               68EC0xx
  3031.    Esc sequences                          Printer control
  3032.    FAQ's, others                          FAQs
  3033.    FD-files                               Pragmas
  3034.    fd2pragma                              Pragmas
  3035.    file endings                           Endings
  3036.    Fish CD-Rom                            Fish CD
  3037.    Fish disks                             Fish disk xxx
  3038.    Fish floppy disks                      Fish floppy disks
  3039.    Fish PD                                Fish
  3040.    FishCon                                Infos
  3041.    FishXref                               Infos
  3042.    FlexCat                                Localizing
  3043.    Forth                                  Compilers
  3044.    Fortran                                Compilers
  3045.    FPU                                    FPU
  3046.    Fresh Fish CD-Rom                      Fish CD
  3047.    FTP servers                            FTP
  3048.    GadTools                               MUI
  3049.    Gcc                                    The GNU C compiler
  3050.    gcc-amiga-libraries                    Amiga Libraries
  3051.    gcc-authors                            Authors
  3052.    gcc-compiling                          Compiling
  3053.    gcc-current                            Current Version
  3054.    gcc-how-to-get-help                    How to get help
  3055.    gcc-inline-headers                     Inline Headers
  3056.    gcc-installation                       Installation
  3057.    gcc-requirements                       Requirements
  3058.    gcc-sources                            Sources for Gcc
  3059.    GfxBase                                X11
  3060.    GigaMem                                68EC0xx
  3061.    Graphics                               Graphics
  3062.    Guo Biao                               Chinese
  3063.    HD (A1200)                             A1200-HD
  3064.    HD compression                         HD-Compression
  3065.    Hirsch & Wolf                          CATS
  3066.    history                                Amiga-FAQ Archive
  3067.    HookEntry                              Missing functions
  3068.    HZview                                 Chinese
  3069.    IBM emulator                           IBM-compatibles
  3070.    Includes                               Includes
  3071.    JemTeX                                 Japanese
  3072.    JIStoJi                                Japanese
  3073.    jmore                                  Japanese
  3074.    Kanji                                  Japanese
  3075.    KingFisher                             Infos
  3076.    KitCat                                 Localizing
  3077.    LibAllocPooled                         Missing functions
  3078.    Linux                                  Unix
  3079.    Lisp                                   Compilers
  3080.    locale.library                         Localizing
  3081.    Localizing                             Localizing
  3082.    Mail-server                            Mail
  3083.    mailbox                                Mailbox
  3084.    Mailing lists                          Mailing lists
  3085.    MakeCat                                Localizing
  3086.    Memory, virtual                        68EC0xx
  3087.    Missing functions                      Missing functions
  3088.    MMU                                    68EC0xx
  3089.    Modula-2                               Compilers
  3090.    Monitors                               Monitors
  3091.    MS-Dos (emulator)                      IBM-compatibles
  3092.    MS-Dos (Syquest)                       MsDos-Syquest
  3093.    MS-Dos disks                           MS-Dos disks
  3094.    Msh                                    MS-Dos disks
  3095.    MUI                                    MUI
  3096.    Multiscan                              Monitors
  3097.    NDA                                    Developer
  3098.    NDK                                    Includes
  3099.    NDU                                    Includes
  3100.    NDUK                                   Includes
  3101.    NetBSD                                 Unix
  3102.    NTSC                                   PAL-NTSC
  3103.    Oberon                                 Compilers
  3104.    Oberon-A                               Compilers
  3105.    packers                                Endings
  3106.    packers on Unix                        Endings
  3107.    Page Layout Languages                  Word Processors
  3108.    PAL                                    PAL-NTSC
  3109.    Pascal                                 Compilers
  3110.    Pipe (command)                         Pipe command
  3111.    PIPE:                                  Pipe
  3112.    Planar displays                        Chunky vs. Planar
  3113.    Point manager FAQ                      FAQs
  3114.    Postscript                             Postscript
  3115.    pragmas                                Pragmas
  3116.    Printer control                        Printer control
  3117.    Prolog                                 Compilers
  3118.    Queue-handler                          Pipe
  3119.    Reviews                                Reviews
  3120.    RKMs                                   Manuals
  3121.    Rom Kernel manuals                     Manuals
  3122.    Splitting files                        Splitting
  3123.    Stacker                                HD-Compression
  3124.    Syquest                                MsDos-Syquest
  3125.    TeX                                    TeX
  3126.    Text Editors                           Editors
  3127.    Unix                                   Unix
  3128.    Unix-LhA                               Unix-LhA
  3129.    VGA                                    Monitors
  3130.    Word Processors                        Word Processors
  3131.    Wysiwyg                                Word Processors
  3132.    X11                                    X11
  3133.    XFH                                    HD-Compression
  3134.    XPK                                    HD-Compression
  3135.    _mchar                                 _mchar
  3136.    _pchar                                 Pipe command
  3137.   
  3138.